media assets: fix sidebar overflow on Chrome.
Fix bug on the media assets show page where very long EXIF values wouldn't be word-broken, so they could cause the sidebar to become wider than the screen. This only affected Chrome, not Firefox or Safari. Example: https://danbooru.donmai.us/media_assets/7167264
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
<% pairs.sort.each do |key, value| %>
|
||||
<tr>
|
||||
<th class="text-left w-1/4"><%= key.split(":").second.scan(/(?:[A-Z][a-z]+|[A-Z]+(?![a-z]))/).join(" ") %></th>
|
||||
<td class="break-all"><%= link_to value, media_assets_path(search: { metadata: { key => value }}) %></td>
|
||||
<td class="break-words"><%= link_to value, media_assets_path(search: { metadata: { key => value }}) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user