center the settings relative to the sidebar

This commit is contained in:
Alex Turchyn
2023-06-03 00:16:38 +03:00
parent 4905b13f25
commit c0caed53ce
5 changed files with 13 additions and 9 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
<div class="flex flex-wrap space-y-4 md:flex-nowrap md:space-y-0 md:space-x-16">
<div class="flex flex-wrap space-y-4 md:flex-nowrap md:space-y-0">
<%= render 'shared/settings_nav' %>
<div class="flex-grow max-w-xl">
<div class="flex-grow max-w-xl mx-auto">
<h1 class="text-4xl font-bold mb-4">Profile</h1>
<%= form_for @user, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<div class="grid md:grid-cols-2 gap-4">
@@ -18,4 +18,5 @@
</div>
<% end %>
</div>
<div class="w-0 md:w-52"></div>
</div>