Skip to content

Commit 376e507

Browse files
committed
fix: drawer should use box shadow instead of border
1 parent 71e1391 commit 376e507

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/.vitepress/components/DefaultDrawer.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Drawer } from '../../../lib'
99
</Drawer.Trigger>
1010
<Drawer.Portal>
1111
<Drawer.Overlay class="fixed inset-0 bg-black/40" />
12-
<Drawer.Content style="border: 1px solid #222; padding: 32px 24px 24px;" class="z-999 bg-[#0a0a0a] flex flex-col rounded-t-[10px] mt-24 h-fit fixed bottom-0 left-0 right-0 outline-none">
12+
<Drawer.Content class="content z-9999 bg-[#0a0a0a] flex flex-col rounded-t-[10px] mt-24 h-fit fixed bottom-0 left-0 right-0 outline-none">
1313
<div class="p-4 bg-[#0a0a0a] rounded-t-[10px] flex-1">
1414
<div class="flex flex-col gap-[12px]">
1515
<Drawer.Title style="font-size: 18px; font-weight: 600;" class="font-bold mb-4 color-[#ededed]">Drawer for Vue.</Drawer.Title>
@@ -51,4 +51,9 @@ import { Drawer } from '../../../lib'
5151
.trigger:hover {
5252
background: #d4d4d4;
5353
}
54+
55+
.content {
56+
padding: 32px 24px 24px;
57+
box-shadow: 0 0 0 1px rgba(255,255,255,0.145),0px 1px 1px rgba(0,0,0,0.02),0px 4px 8px -4px rgba(0,0,0,0.04),0px 16px 24px -8px rgba(0,0,0,0.06);
58+
}
5459
</style>

docs/.vitepress/components/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import DefaultDrawer from './DefaultDrawer.vue'
2222
align-items: center;
2323
justify-content: center;
2424
flex-direction: column;
25-
min-height: 60vh;
2625
gap: 16px;
2726
position: relative;
27+
min-height: 75vh;
2828
}
2929
3030
.wrapper-inner {
@@ -44,7 +44,7 @@ svg {
4444
height: 100%;
4545
width: 100%;
4646
inset: 0;
47-
stroke: hsl(0 0% 10%);
47+
stroke: hsl(0 0% 18%);
4848
max-width: 100%;
4949
}
5050

0 commit comments

Comments
 (0)