Skip to content

Commit 91712da

Browse files
committed
styling/Use specific padding depending on screen width
1 parent de7852b commit 91712da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/views/layouts/application.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
<%= render partial: 'shared/toast' %>
3434
<%= render partial: 'shared/topbar' %>
3535

36-
<div class="max-w-6xl mx-auto py-4 sm:px-6 lg:px-8">
36+
<div class="max-w-6xl mx-auto py-4 md:px-4 lg:px-8">
3737
<div class="min-h-screen bg-gray-100">
3838
<!-- When the mobile menu is open, add `overflow-hidden` to the `body` element to prevent double scrollbars -->
3939
<!-- On: "fixed inset-0 z-40 overflow-y-auto", Off: "undefined" -->
4040

41-
<div class="max-w-3xl mx-auto lg:max-w-7xl lg:grid lg:grid-cols-12 lg:gap-8">
41+
<div class="mx-auto lg:max-w-7xl lg:grid lg:grid-cols-12 lg:gap-8">
4242
<main class="lg:col-span-9 xl:col-span-9">
4343
<%= yield %>
4444
</main>

app/views/shared/_topbar.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="header">
22
<div id="header-nav-wrapper">
33
<div id="header-nav" class="position-relative">
4-
<div class="flex items-center flex-1">
4+
<div class="flex items-center flex-1 ml-4 md:ml-4 lg:ml-0">
55
<%= link_to root_path, class: 'flex-1' do %>
66
<%= render partial: 'shared/icons/logo_full', locals: { height: 12 } %>
77
<% end %>

0 commit comments

Comments
 (0)