Skip to content

Commit 67bc1e6

Browse files
committed
chore(proto): 🧪 let the sheet cover reach the top edge under the drag handle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CnAiFbA6iCLzpJ2F55jPdT
1 parent 1a2b75f commit 67bc1e6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎apps/web/src/proto/user-preview/harness.tsx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,15 @@ const PreviewSheet = ({
139139
</DrawerTrigger>
140140
<DrawerContent
141141
aria-describedby={undefined}
142+
// The built-in handle row would leave a strip above the cover: hide it and
143+
// draw the handle over the cover instead, so the cover reaches the top edge.
144+
className="overflow-hidden [&>div[aria-hidden]:first-child]:hidden"
142145
style={{ paddingBottom: 'env(safe-area-inset-bottom)' }}
143146
>
147+
<div
148+
aria-hidden="true"
149+
className="pointer-events-none absolute inset-x-0 top-2.5 z-10 mx-auto h-1.5 w-12 rounded-full bg-black/25 dark:bg-white/40"
150+
/>
144151
<DrawerTitle className="sr-only">Profile of @{nameCode}</DrawerTitle>
145152
<div className="mx-auto w-full max-w-md overflow-y-auto">
146153
{opened ? (

0 commit comments

Comments
 (0)