]> git.openstreetmap.org Git - rails.git/commitdiff
Truncate descriptions horizontally in changeset lists
authorAnton Khorev <tony29@yandex.ru>
Sat, 18 May 2024 16:39:35 +0000 (19:39 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sat, 18 May 2024 16:41:07 +0000 (19:41 +0300)
Can't have horizontal scroll because it interferes with stretched links.

app/views/changesets/_changeset.html.erb

index 6d2c9a7a26f09487a6dac4a3878b7160e1100141..2a3f6585943012583e7cb94eb413d4610c8f97f2 100644 (file)
@@ -11,7 +11,7 @@
    end %>
 
 <%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item list-group-item-action" do %>
-  <p class="fs-6">
+  <p class="fs-6 text-truncate text-wrap">
     <a class="changeset_id link-body-emphasis stretched-link" href="<%= changeset_path(changeset) %>">
       <span><%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %></span>
     </a>