fix: add minWidth to user dropdown

This commit is contained in:
diced 2022-10-08 21:28:36 -07:00
parent 9147847710
commit 1a5925d7e8
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -305,7 +305,7 @@ export default function Layout({ children, props }) {
leftIcon={avatar ? <Image src={avatar} height={32} radius='md' /> : <SettingsIcon />} leftIcon={avatar ? <Image src={avatar} height={32} radius='md' /> : <SettingsIcon />}
onClick={() => setOpen((o) => !o)} onClick={() => setOpen((o) => !o)}
sx={t => ({ sx={t => ({
backgroundColor: '#00000000', backgroundColor: 'inherit',
'&:hover': { '&:hover': {
backgroundColor: t.other.hover, backgroundColor: t.other.hover,
}, },
@ -318,7 +318,7 @@ export default function Layout({ children, props }) {
</Button> </Button>
</Popover.Target> </Popover.Target>
<Popover.Dropdown p={4}> <Popover.Dropdown p={4} mr='md' sx={{ minWidth: '200px' }}>
<Stack spacing={2}> <Stack spacing={2}>
<Text sx={{ <Text sx={{
color: theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[6], color: theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[6],