-
Notifications
You must be signed in to change notification settings - Fork 122
Re: Safe Area Inset Fixes - PWA should take full screen height #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
6824f0a
abf24f1
33a4201
66e0e55
66dfa3d
63ef953
089d677
314e4c2
f61ad18
cac542e
634f25e
e412bc1
95821bb
ed5ab19
1d2b528
834fa10
d182cb5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,18 +7,18 @@ | |
| data-theme="<%= theme %>" | ||
| data-controller="theme" | ||
| data-theme-user-preference-value="<%= Current.user&.theme || "system" %>" | ||
| class="h-full text-primary overflow-hidden font-sans <%= @os %>"> | ||
| class="h-full min-h-[100dvh] text-primary bg-surface font-sans <%= @os %>"> | ||
| <head> | ||
| <%= render "layouts/shared/head" %> | ||
| <%= yield :head %> | ||
| </head> | ||
|
|
||
| <body class="h-full overflow-hidden antialiased"> | ||
| <body class="h-full bg-surface overflow-hidden antialiased pt-[env(safe-area-inset-top)] pb-[min(env(safe-area-inset-bottom),16px)] touch-none"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug:
|
||
| <% if Rails.env.development? %> | ||
| <button hidden data-controller="hotkey" data-hotkey="t t /" data-action="theme#toggle"></button> | ||
| <% end %> | ||
|
|
||
| <div class="fixed z-50 top-6 md:top-4 left-1/2 -translate-x-1/2 w-full md:w-80 px-4 md:px-0 mx-auto md:mx-0 md:right-auto mt-safe"> | ||
| <div class="fixed z-50 top-[env(safe-area-inset-top)] md:top-4 left-1/2 -translate-x-1/2 w-full md:w-80 px-4 md:px-0 mx-auto md:mx-0 md:right-auto"> | ||
| <div id="notification-tray" class="space-y-1 w-full"> | ||
| <%= render_flash_notifications %> | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.