From 2a657a969b855bfb6f91e8c4d21e5f4f7ebe08c7 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 26 May 2024 05:38:27 +0300 Subject: [PATCH] Replace .btn-wrapper with Bootstrap gutters/gaps --- app/assets/stylesheets/common.scss | 10 ---------- app/views/accounts/edit.html.erb | 6 +++--- app/views/notes/new.html.erb | 2 +- app/views/notes/show.html.erb | 4 ++-- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c3f2b36ad..4df8b4c2d 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -637,16 +637,6 @@ tr.turn { } } -/* Bootstrap buttons don't have any vertical margin, so - they touch when adjacent buttons wrap onto a new line - e.g. wide form buttons on a narrow sidebar */ - -.btn-wrapper { - > .btn { - margin-bottom: $spacer * 0.25; - } -} - /* Force LTR/RTL alignment for placeholder text */ .form-control::placeholder { diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index dc649cbf4..f15bc195c 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -54,11 +54,11 @@ -
-
+
+
<%= f.primary t(".save changes button") %>
-
+
<%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
diff --git a/app/views/notes/new.html.erb b/app/views/notes/new.html.erb index 6728b32ff..c9b1275b9 100644 --- a/app/views/notes/new.html.erb +++ b/app/views/notes/new.html.erb @@ -15,7 +15,7 @@
-
+
" disabled="1" class="btn btn-primary">
diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index b3f124433..a04cbf9d9 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -51,7 +51,7 @@
-
+
<% if current_user.moderator? -%> <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-light", :data => { :method => "DELETE", @@ -77,7 +77,7 @@ -
+
<% if @note.status != "hidden" and current_user and current_user.moderator? -%> " class="btn btn-light" data-method="DELETE" data-url="<%= api_note_url(@note, "json") %>"> <% end -%> -- 2.39.5