Skip to content

Commit

Permalink
fix: tabs not growing to fill all available space (#9161)
Browse files Browse the repository at this point in the history
Fix an issue where tabs would fill out all available space, now it's
left aligned.
  • Loading branch information
FredrikOseberg authored Jan 28, 2025
1 parent ddf8a02 commit 1fba4e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/component/project/Project/Project.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ export const StyledTabContainer = styled('div')(({ theme }) => ({
export const StyledTab = styled(Tab)(({ theme }) => ({
textTransform: 'none',
fontSize: theme.fontSizes.bodySize,
flexGrow: 1,
flexBasis: 0,
[theme.breakpoints.down('md')]: {
paddingLeft: theme.spacing(1),
paddingRight: theme.spacing(1),
minWidth: 170,
},
[theme.breakpoints.up('md')]: {
minWidth: 160,
minWidth: 170,
},
}));
5 changes: 4 additions & 1 deletion frontend/src/component/project/Project/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ interface ITab {
const StyledCounterBadge = styled(CounterBadge)(({ theme }) => ({
'.MuiBadge-badge': {
backgroundColor: theme.palette.background.alternative,
right: '2px',
right: '-4px',
},
[theme.breakpoints.down('md')]: {
right: '6px',
},
flex: 'auto',
justifyContent: 'center',
Expand Down

0 comments on commit 1fba4e1

Please sign in to comment.