Skip to content

Commit 965ac96

Browse files
authored
fix: fix margin left in layout (#53)
1 parent ec31529 commit 965ac96

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

Diff for: layouts/default.vue

+5-22
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,13 @@ const color = useColorModeValue('gray.700', 'white');
1414
<TopNavigation />
1515
<chakra.div max-w="8xl" mx="auto" d="flex">
1616
<!-- Sidebar Navigation -->
17-
<chakra.div
18-
:display="{ base: 'none', lg: 'block' }"
19-
position="fixed"
20-
z-index="30"
21-
bottom="0"
22-
top="6rem"
23-
left="max(0px, calc(50% - 45rem))"
24-
right="auto"
25-
width="19.5rem"
26-
pb="10"
27-
px="8"
28-
overflow-y="auto"
29-
overscroll-behavior="contain"
30-
>
17+
<chakra.div :display="{ base: 'none', lg: 'block' }" position="fixed" z-index="30" bottom="0" top="6rem"
18+
left="max(0px, calc(50% - 45rem))" right="auto" width="19.5rem" pb="10" px="8" overflow-y="auto"
19+
overscroll-behavior="contain">
3120
<sidebar />
3221
</chakra.div>
33-
<chakra.main
34-
:pl="{ base: 4, lg: '19.5rem' }"
35-
pt="4"
36-
pb="24"
37-
:pr="{ base: 4, xl: 16 }"
38-
class="chakra-prose"
39-
>
40-
<chakra.div :mr="{ xl: '15.5rem' }">
22+
<chakra.main :pl="{ base: 4, lg: '19.5rem' }" pt="4" pb="24" :pr="{ base: 4, xl: 16 }" class="chakra-prose">
23+
<chakra.div :mr="{ xl: '15.5rem' }" :pl="{ base: 2, lg: '1rem' }">
4124
<slot />
4225

4326
<c-h-stack align-items="center" mt="6">

0 commit comments

Comments
 (0)