Skip to content

Add floating card style to mobile action sheet#12

Merged
emilhauk merged 5 commits intomasterfrom
action-sheet-floating-card
Mar 22, 2026
Merged

Add floating card style to mobile action sheet#12
emilhauk merged 5 commits intomasterfrom
action-sheet-floating-card

Conversation

@emilhauk
Copy link
Copy Markdown
Owner

Summary

  • Add .5rem margin on all sides of the action sheet content
  • Apply uniform border-radius: 16px (all corners) for a floating card look
  • Adjust max-height to account for the new margins

Test plan

  • Verify action sheet appearance on mobile (real device + emulation)
  • Check both light and dark themes
  • Confirm emoji picker still fits within the sheet

🤖 Generated with Claude Code

emilhauk and others added 5 commits March 22, 2026 19:39
Float the action sheet with .5rem margin on all sides and uniform
border-radius, giving it a card-like appearance.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Enable env(safe-area-inset-*) by adding viewport-fit=cover to the
viewport meta tag. Use safe-area insets in the action sheet margins,
compose bar padding, and site header padding so content stays clear
of rounded screen corners and the home indicator on newer iPhones.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Include env(safe-area-inset-top) in --header-h so the site header
clears the status bar / Dynamic Island in standalone PWA mode. All
elements using --header-h for top offsets (sidebar, panel, PWA guide)
automatically account for the inset.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@emilhauk emilhauk merged commit af5b640 into master Mar 22, 2026
4 checks passed
@emilhauk emilhauk deleted the action-sheet-floating-card branch March 22, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant