mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +02:00
Consolidate spacing in containers:
This commit is contained in:
parent
78982e6f92
commit
bfb8bc71ae
@ -72,10 +72,9 @@ const Collaborators: FC<CollaboratorListProps> = ({ users }) => {
|
||||
const Container = styled('article')(({ theme }) => ({
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
gap: theme.spacing(4),
|
||||
gap: theme.spacing(10),
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
marginInlineEnd: theme.spacing(4),
|
||||
[theme.breakpoints.down('xl')]: {
|
||||
display: 'none',
|
||||
},
|
||||
|
@ -117,11 +117,9 @@ const StyledSeparator = styled('div')(({ theme }) => ({
|
||||
const StyledTabRow = styled('div')(({ theme }) => ({
|
||||
display: 'flex',
|
||||
flexFlow: 'row nowrap',
|
||||
}));
|
||||
|
||||
const StyledTabContainer = styled('div')(({ theme }) => ({
|
||||
padding: theme.spacing(0, 4),
|
||||
flex: '1',
|
||||
gap: theme.spacing(4),
|
||||
paddingInline: theme.spacing(4),
|
||||
justifyContent: 'space-between',
|
||||
}));
|
||||
|
||||
const StyledTabButton = styled(Tab)(({ theme }) => ({
|
||||
@ -363,23 +361,21 @@ export const FeatureView = () => {
|
||||
</StyledInnerContainer>
|
||||
<StyledSeparator />
|
||||
<StyledTabRow>
|
||||
<StyledTabContainer>
|
||||
<Tabs
|
||||
value={activeTab.path}
|
||||
indicatorColor='primary'
|
||||
textColor='primary'
|
||||
>
|
||||
{tabData.map((tab) => (
|
||||
<StyledTabButton
|
||||
key={tab.title}
|
||||
label={tab.title}
|
||||
value={tab.path}
|
||||
onClick={() => navigate(tab.path)}
|
||||
data-testid={`TAB-${tab.title}`}
|
||||
/>
|
||||
))}
|
||||
</Tabs>
|
||||
</StyledTabContainer>
|
||||
<Tabs
|
||||
value={activeTab.path}
|
||||
indicatorColor='primary'
|
||||
textColor='primary'
|
||||
>
|
||||
{tabData.map((tab) => (
|
||||
<StyledTabButton
|
||||
key={tab.title}
|
||||
label={tab.title}
|
||||
value={tab.path}
|
||||
onClick={() => navigate(tab.path)}
|
||||
data-testid={`TAB-${tab.title}`}
|
||||
/>
|
||||
))}
|
||||
</Tabs>
|
||||
<Collaborators collaborators={feature.collaborators} />
|
||||
</StyledTabRow>
|
||||
</StyledHeader>
|
||||
|
Loading…
Reference in New Issue
Block a user