Skip to content

Commit 1b558c3

Browse files
committed
style(website): minor styling adjustments to account-dropdown
1 parent dfd683c commit 1b558c3

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

website/src/components/account-dropdown/index.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Group, Menu, Text, UnstyledButton } from '@mantine/core';
1+
import { Group, Menu, Stack, Text, UnstyledButton } from '@mantine/core';
22
import { useBoolean } from 'ahooks';
33
import { forwardRef } from 'react';
44
import { useNavigate } from 'react-router-dom';
@@ -32,15 +32,16 @@ const UserButton = forwardRef<HTMLButtonElement, UserButtonProps>(
3232
{...rest}
3333
>
3434
<Group>
35-
<div style={{ flex: 1 }}>
35+
<Stack spacing={0} style={{ flex: 1 }}>
3636
<Text size="sm" weight={500}>
3737
{username}
3838
</Text>
39-
40-
<Text color="dimmed" size="xs">
41-
{email}
42-
</Text>
43-
</div>
39+
{email && (
40+
<Text mt={-4} color="dimmed" size={11}>
41+
{email}
42+
</Text>
43+
)}
44+
</Stack>
4445

4546
<ChevronRight size={16} />
4647
</Group>

website/src/frames/admin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function AdminFrame() {
3030
}}
3131
>
3232
<MantineProvider>
33-
<Group position="apart" px={10} sx={{ height: '40px', borderBottom: '0.0625rem solid #e9ecef' }}>
33+
<Group position="apart" pl={10} sx={{ height: '40px', borderBottom: '0.0625rem solid #e9ecef' }}>
3434
<Group position="left">
3535
{/* should place breadcrumbs here */}
3636
<AdminBreadcrumbs />

website/src/frames/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function App() {
4747
}}
4848
>
4949
<MantineProvider>
50-
<Group position="apart" px={10} sx={{ height: '40px', borderBottom: '0.0625rem solid #e9ecef' }}>
50+
<Group position="apart" pl={10} sx={{ height: '40px', borderBottom: '0.0625rem solid #e9ecef' }}>
5151
<Group position="left">
5252
<NavbarToggler collapsed={navbarCollapsed} expand={setFalse} />
5353
<DashboardBreadcrumbs />

0 commit comments

Comments
 (0)