summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-14 00:30:45 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-14 00:30:45 +0200
commit45d422f6582ac2ebf455a8c8168738db54a76582 (patch)
treecd42362026c42ea5d346aaae7054d2e2a0f644e9 /app
parent73b958e809e01517598727ec49cce7712bf685c5 (diff)
Consolidate .action_button styling from visual nudging
Let containers space their own action buttons: Remove a superfluous margin-bottom from .action_button, their containers already properly arranged them. Align action rows on the text baseline: .aligned_action_row aligns its children on the baseline, so a control sits level with the text beside it without a per-element offset.
Diffstat (limited to 'app')
-rw-r--r--app/views/nodes/chapters.html.erb2
-rw-r--r--app/views/nodes/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/nodes/chapters.html.erb b/app/views/nodes/chapters.html.erb
index def56659..bbaf0b8a 100644
--- a/app/views/nodes/chapters.html.erb
+++ b/app/views/nodes/chapters.html.erb
@@ -1,6 +1,6 @@
1<h1><%= t(".title") %></h1> 1<h1><%= t(".title") %></h1>
2 2
3<%= form_tag chapters_nodes_path, method: :get, class: "node_search_form" do %> 3<%= form_tag chapters_nodes_path, method: :get, class: "search_form" do %>
4 <label><%= check_box_tag 'kinds[]', 'erfa', @kind_keys.include?('erfa') %> Erfa</label> 4 <label><%= check_box_tag 'kinds[]', 'erfa', @kind_keys.include?('erfa') %> Erfa</label>
5 <label><%= check_box_tag 'kinds[]', 'chaostreff', @kind_keys.include?('chaostreff') %> Chaostreff</label> 5 <label><%= check_box_tag 'kinds[]', 'chaostreff', @kind_keys.include?('chaostreff') %> Chaostreff</label>
6 <%= button_tag type: "submit", class: "action_button" do %> 6 <%= button_tag type: "submit", class: "action_button" do %>
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index c9558ed0..af55d699 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -122,7 +122,7 @@
122 <div id="restore_search_results" class="search_results"></div> 122 <div id="restore_search_results" class="search_results"></div>
123 </div> 123 </div>
124 <%= hidden_field_tag :parent_id, suggestion&.id %> 124 <%= hidden_field_tag :parent_id, suggestion&.id %>
125 <%= submit_tag t(".restore_here"), :class => "action_button action_button_no_margin_top" %> 125 <%= submit_tag t(".restore_here"), :class => "action_button action_button" %>
126 <% end %> 126 <% end %>
127 <span class="field_hint"><%= t(".restore_hint") %></span> 127 <span class="field_hint"><%= t(".restore_hint") %></span>
128 </div> 128 </div>