Clean up inconsistencies

- Fix differences between show and edit views
- Style email input/link
This commit is contained in:
Jason Zimdars
2025-10-21 15:57:57 -07:00
committed by Stanko K.R.
parent c0b4205b3c
commit bea3330681
2 changed files with 19 additions and 15 deletions
+11 -8
View File
@@ -1,6 +1,10 @@
<% @page_title = @user.name %>
<div class="panel shadow center txt-align-center margin-block-end-double">
<% content_for :header do %>
<%= render "my/menus/menu" %>
<% end %>
<div class="panel shadow center txt-align-center margin-block-end-double" style="--panel-size: 45ch;">
<div class="flex flex-column gap position-relative">
<% if Current.user == @user %>
<%= link_to edit_user_path(@user), class: "user-edit-link btn" do %>
@@ -9,8 +13,8 @@
<% end %>
<% end %>
<div class="avatar txt-xx-large center fill-white">
<%= image_tag user_avatar_path(@user), alt: "Profile avatar for #{@user.name}", size: 128 %>
<div class="avatar txt-xx-large center fill-white btn--circle hide-focus-ring">
<%= image_tag user_avatar_path(@user), alt: "Profile avatar for #{@user.name}" %>
</div>
<div class="flex flex-column gap-half margin-block-end">
@@ -32,15 +36,14 @@
</div>
<% if Current.user == @user %>
<div class="panel shadow center margin-block-double">
<div class="panel shadow center margin-block-double" style="--panel-size: 45ch;">
<%= render "users/transfer", user: @user %>
</div>
<div class="panel borderless center margin-block-double">
<%= button_to session_path, method: :delete, class: "btn center txt-medium", data: { turbo: false } do %>
<%= icon_tag "logout" %>
<div class="center margin-block-start-double">
<%= button_to session_path, method: :delete, class: "btn btn--plain txt-link txt-small", data: { turbo: false } do %>
<span>Sign out</span>
<% end %>
</div>
</div>
<% end %>