Skip to content

Commit 8d860cd

Browse files
Fix incorrect button rounding (#4862)
.btn-group uses :first-child and :last-child to determine which buttons should have rounded corners and which ones should have square corners. The "Quiet" button had a square left corner, because the first child was a CSRF hidden field tag. Keeping only .btn elements inside the .btn-group means that the 1 or 2 buttons are rounded as expected. When there's no "Quiet" button, the "Stop" button has 4 round corners. When both buttons are present, the corners between the buttons are square. Fixes #4858
1 parent 0ca5385 commit 8d860cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/views/busy.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@
7878
<td><%= process['busy'] %></td>
7979
<td>
8080
<form method="POST">
81+
<%= csrf_tag %>
82+
<input type="hidden" name="identity" value="<%= process['identity'] %>"/>
83+
8184
<div class="btn-group pull-right flip">
82-
<%= csrf_tag %>
83-
<input type="hidden" name="identity" value="<%= process['identity'] %>"/>
8485
<% unless process.stopping? %><button class="btn btn-warn" type="submit" name="quiet" value="1"><%= t('Quiet') %></button><% end %>
8586
<button class="btn btn-danger" type="submit" name="stop" value="1"><%= t('Stop') %></button>
8687
</div>

0 commit comments

Comments
 (0)