1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 15:05:22 +02:00

fix(ui): remove duplicate setting of safe-area-inset

This commit is contained in:
Ken Tandrian 2025-06-18 17:29:42 +00:00
parent ee95b5c7e3
commit 8cb6d81f9b
3 changed files with 3 additions and 4 deletions

View file

@ -268,7 +268,6 @@
html {
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
}
button {

View file

@ -11,7 +11,7 @@
<%= render "layouts/shared/htmldoc" do %>
<div
class="flex flex-col lg:flex-row h-full bg-surface"
class="flex flex-col lg:flex-row h-svh bg-surface"
data-controller="app-layout"
data-app-layout-expanded-sidebar-class="<%= expanded_sidebar_class %>"
data-app-layout-collapsed-sidebar-class="<%= collapsed_sidebar_class %>"
@ -155,7 +155,7 @@
<% end %>
<%# MOBILE - Bottom Nav %>
<%= tag.nav class: "lg:hidden bg-surface shrink-0 z-10 pb-[calc(env(safe-area-inset-bottom)+0.75rem)] border-t border-tertiary flex justify-around" do %>
<%= tag.nav class: "lg:hidden bg-surface shrink-0 z-10 pb-[env(safe-area-inset-bottom)] border-t border-tertiary flex justify-around" do %>
<% mobile_nav_items.each do |nav_item| %>
<%= render "layouts/shared/nav_item", **nav_item %>
<% end %>

View file

@ -13,7 +13,7 @@
<%= yield :head %>
</head>
<body class="h-dvh pb-[env(safe-area-inset-bottom)] overflow-hidden lg:overflow-auto antialiased">
<body class="bg-surface overflow-hidden lg:overflow-auto antialiased">
<% if Rails.env.development? %>
<button hidden data-controller="hotkey" data-hotkey="t t /" data-action="theme#toggle"></button>
<% end %>