🎨 Add minor UI tweaks (#1506)

This commit is contained in:
Alejandra
2025-02-21 20:10:51 +00:00
committed by GitHub
parent 2eb8f5b624
commit ccbdb30a87
5 changed files with 12 additions and 17 deletions

View File

@@ -22,10 +22,6 @@ const Sidebar = () => {
const { logout } = useAuth()
const [open, setOpen] = useState(false)
const handleLogout = async () => {
logout()
}
return (
<>
{/* Mobile */}
@@ -48,7 +44,7 @@ const Sidebar = () => {
<FaBars />
</IconButton>
</DrawerTrigger>
<DrawerContent maxW="280px">
<DrawerContent maxW="xs">
<DrawerCloseTrigger />
<DrawerBody>
<Flex flexDir="column" justify="space-between">
@@ -56,7 +52,9 @@ const Sidebar = () => {
<SidebarItems />
<Flex
as="button"
onClick={handleLogout}
onClick={() => {
logout()
}}
alignItems="center"
gap={4}
px={4}
@@ -67,7 +65,7 @@ const Sidebar = () => {
</Flex>
</Box>
{currentUser?.email && (
<Text fontSize="sm" p={2}>
<Text fontSize="sm" p={2} truncate maxW="sm">
Logged in as: {currentUser.email}
</Text>
)}
@@ -84,7 +82,7 @@ const Sidebar = () => {
position="sticky"
bg="bg.subtle"
top={0}
minW="280px"
minW="xs"
h="100vh"
p={4}
>