From 3ccfb864db12e59d40e8ae18fd137444379a8c7e Mon Sep 17 00:00:00 2001 From: Jay Ohms Date: Fri, 27 Mar 2026 04:41:43 -0400 Subject: [PATCH 1/2] Hide the links to manage passkeys and sign out from the webview in the native apps --- app/views/users/show.html.erb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index c30f67de4..028335a26 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -39,16 +39,18 @@ <% end %> <% if Current.user == @user %> - +
+ - <%= link_to my_passkeys_path, class: "btn txt-x-small center" do %> - <%= icon_tag "authentication" %> - Manage passkeys - <% end %> + <%= link_to my_passkeys_path, class: "btn txt-x-small center" do %> + <%= icon_tag "authentication" %> + Manage passkeys + <% end %> - <%= button_to session_path(script_name: nil), method: :delete, class: "btn txt-x-small center", form: { data: { turbo: false, controller: "clear-offline-cache", action: "submit->clear-offline-cache#clearCache" } } do %> - Sign out of Fizzy on this device - <% end %> + <%= button_to session_path(script_name: nil), method: :delete, class: "btn txt-x-small center", form: { data: { turbo: false, controller: "clear-offline-cache", action: "submit->clear-offline-cache#clearCache" } } do %> + Sign out of Fizzy on this device + <% end %> +
<% end %> From f11bb18d939cc326a04be78de6319fb7ed4f7d6b Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Mon, 30 Mar 2026 13:53:14 +0200 Subject: [PATCH 2/2] Tweak alignments --- app/views/users/show.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 028335a26..a50a24a98 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -39,15 +39,15 @@ <% end %> <% if Current.user == @user %> -
- +
+ - <%= link_to my_passkeys_path, class: "btn txt-x-small center" do %> + <%= link_to my_passkeys_path, class: "btn txt-x-small" do %> <%= icon_tag "authentication" %> Manage passkeys <% end %> - <%= button_to session_path(script_name: nil), method: :delete, class: "btn txt-x-small center", form: { data: { turbo: false, controller: "clear-offline-cache", action: "submit->clear-offline-cache#clearCache" } } do %> + <%= button_to session_path(script_name: nil), method: :delete, class: "btn txt-x-small", form: { data: { turbo: false, controller: "clear-offline-cache", action: "submit->clear-offline-cache#clearCache" } } do %> Sign out of Fizzy on this device <% end %>