Skip to content

Commit 44a6c21

Browse files
committed
nowrap should only be applied to bool & numeric site settings values
1 parent e4ad1f7 commit 44a6c21

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/views/site_settings/index.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
<h4><%= setting.name %></h4>
2727
<div class="form-caption"><%= setting.description %></div>
2828
</td>
29-
<td class="site-setting--value js-setting-value<%= ' nowrap' if setting.text? %>"
29+
<% nowrap = setting.boolean? || setting.numeric? %>
30+
<td class="site-setting--value js-setting-value<%= ' nowrap' if nowrap %>"
3031
data-type="<%= setting.value_type %>" data-name="<%= setting.name %>"
3132
data-community-id="<%= current_page?(global_settings_path) ? nil : RequestContext.community_id %>">
3233
<%= setting.typed %>

0 commit comments

Comments
 (0)