Skip to content

Commit 4303bb2

Browse files
committed
style(fix): properly set dashboard layout border and shadow
1 parent 420381d commit 4303bb2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/Layout/Dashboard.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,12 @@ export const DashboardBox = (props: BoxProps) => (
1212
)
1313

1414
export const DashboardContents = (props: BoxProps) => (
15-
<DashboardBox borderRadius='lg' height='100%' py={{ base: 4, lg: 10 }} px={{ base: 4, lg: 10 }} {...props} />
15+
<DashboardBox
16+
boxShadow='0 0 0 1px rgba(56,60,67,.05),0 1px 3px 0 rgba(56,60,67,.15)'
17+
borderRadius='20px'
18+
height='100%'
19+
py={{ base: 4, lg: 10 }}
20+
px={{ base: 4, lg: 10 }}
21+
{...props}
22+
/>
1623
)

src/elements/LayoutDashboard.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,7 @@ const LayoutDashboard: React.FC = () => {
7070
<DashboardMenu isOpen={isOpen} onClose={onClose} />
7171

7272
{/* Main Content */}
73-
<Box
74-
gridArea='main'
75-
mr={{ base: 0, xl: 6 }}
76-
mb={4}
77-
minW={0}
78-
boxShadow='0 0 0 1px rgba(56,60,67,.05),0 1px 3px 0 rgba(56,60,67,.15)'
79-
borderRadius='20px'
80-
>
73+
<Box gridArea='main' mr={{ base: 0, xl: 6 }} mb={4} minW={0}>
8174
<Outlet context={{ setTitle, setBack } satisfies DashboardLayoutContext} />
8275
</Box>
8376
</Grid>

0 commit comments

Comments
 (0)