Skip to content

Commit

Permalink
smaller font size of side bar list items
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 17, 2023
1 parent 49e044e commit 7f16f0a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions v2/web/components/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ const LIST_SX = {
height: '100%',
overflowY: 'auto',
overscrollBehavior: 'none',
fontSize: '0.875rem',
};
const LIST_ITEM_SX = {
padding: '0 8px',
};

interface Props {
Expand Down Expand Up @@ -151,12 +155,12 @@ export const SideBar: React.FC<Props> = ({ headings, path }) => {
});
}}
disablePadding
style={{ padding: '0 8px' }}
sx={LIST_ITEM_SX}
ref={ref}
key={key}
>
<ListItemButton style={style} disableGutters>
<ListItemText primary={h.text} sx={sx} />
<ListItemText primary={h.text} disableTypography sx={sx} />
</ListItemButton>
</ListItem>
);
Expand Down

0 comments on commit 7f16f0a

Please sign in to comment.