diff --git a/app/assets/stylesheets/profile-layout.css b/app/assets/stylesheets/profile-layout.css new file mode 100644 index 000000000..bb18c2655 --- /dev/null +++ b/app/assets/stylesheets/profile-layout.css @@ -0,0 +1,16 @@ +@layer components { + .profile-layout { + display: flex; + gap: var(--inline-space); + + @media (min-width: 800px) { + align-items: stretch; + justify-content: center; + } + + @media (max-width: 799px) { + align-items: center; + flex-direction: column; + } + } +} diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 62f1847f2..9e49972f1 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -4,48 +4,54 @@ <%= render "my/menus/menu" %> <% end %> -