From 5efe441fa8e2b4bbb98cbfa0ebf2e3a0c6ea1c72 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 12 Feb 2025 18:05:23 +0800 Subject: [PATCH] style: improve sign out button layout - Add padding and flex layout to the sign out button - Wrap the icon and text in a div for better structure These changes update the sign out button in the navbar for improved accessibility and aesthetics, aligning it better with the overall UI style. --- app/views/layouts/_navbar.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index 9dff240..47d4b86 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -62,11 +62,13 @@
  • <%= button_to destroy_user_session_path, method: :delete, - class: "w-full text-left" do %> - - - - Sign out + class: "flex items-center gap-2 w-full p-2" do %> +
    + + + + Sign out +
    <% end %>
  • <% else %>