fix: responsive

This commit is contained in:
Sonny
2024-05-29 18:10:17 +02:00
committed by Sonny
parent f2478bcf56
commit e9ccefd938
16 changed files with 183 additions and 52 deletions

View File

@@ -5,7 +5,7 @@ import { rgba } from '~/lib/color';
export const Item = styled.div(({ theme }) => ({
userSelect: 'none',
height: '40px',
width: '250px',
width: '100%',
color: theme.colors.font,
backgroundColor: theme.colors.background,
padding: '8px 12px',

View File

@@ -13,12 +13,16 @@ import useUser from '~/hooks/use_user';
import { rgba } from '~/lib/color';
import { appendCollectionId } from '~/lib/navigation';
const SideMenu = styled.nav({
const SideMenu = styled.nav(({ theme }) => ({
height: '100%',
width: '300px',
backgroundColor: theme.colors.background,
borderRight: `1px solid ${theme.colors.lightGrey}`,
marginRight: '5px',
display: 'flex',
gap: '.35em',
flexDirection: 'column',
});
}));
const AdminButton = styled(ItemLink)(({ theme }) => ({
color: theme.colors.lightRed,