Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit 8cb6d81

Browse files
committed
fix(ui): remove duplicate setting of safe-area-inset
1 parent ee95b5c commit 8cb6d81

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

app/assets/tailwind/maybe-design-system.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@
268268

269269
html {
270270
padding-top: env(safe-area-inset-top);
271-
padding-bottom: env(safe-area-inset-bottom);
272271
}
273272

274273
button {

app/views/layouts/application.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<%= render "layouts/shared/htmldoc" do %>
1313
<div
14-
class="flex flex-col lg:flex-row h-full bg-surface"
14+
class="flex flex-col lg:flex-row h-svh bg-surface"
1515
data-controller="app-layout"
1616
data-app-layout-expanded-sidebar-class="<%= expanded_sidebar_class %>"
1717
data-app-layout-collapsed-sidebar-class="<%= collapsed_sidebar_class %>"
@@ -155,7 +155,7 @@
155155
<% end %>
156156

157157
<%# MOBILE - Bottom Nav %>
158-
<%= 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 %>
158+
<%= 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 %>
159159
<% mobile_nav_items.each do |nav_item| %>
160160
<%= render "layouts/shared/nav_item", **nav_item %>
161161
<% end %>

app/views/layouts/shared/_htmldoc.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<%= yield :head %>
1414
</head>
1515

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

0 commit comments

Comments
 (0)