redux-devtools/packages/redux-devtools-ui/src/Tabs/styles/common.ts
Nathan Bierema 61632768a7
Replace styled-components with Emotion (#1883)
* Replace styled-components with Emotion in ui

* react-dock

* Remainder

* Fix

* Format

* Update snapshots

* Create bright-sheep-joke.md
2025-06-01 13:59:13 +00:00

37 lines
671 B
TypeScript

import styled from '@emotion/styled';
import { Position } from '../Tabs';
interface StyleProps {
position: Position;
}
export const TabsContainer = styled.div<StyleProps>`
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
overflow-y: hidden;
overflow-x: hidden;
height: 100%;
> div > div:first-child {
${(props) =>
props.position !== 'left' &&
`
margin-left: auto !important;
`}
${(props) =>
props.position === 'center' &&
`
margin-right: auto !important;
`}
}
> div:nth-child(2) {
flex: 1;
overflow-y: auto;
position: relative;
}
`;