]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #4813 from AntonKhorev/no-fst-italic
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2024 14:34:14 +0000 (15:34 +0100)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2024 14:34:14 +0000 (15:34 +0100)
Use font size instead of italic for changeset/trace descriptions

app/views/browse/_common_details.html.erb
app/views/changesets/_changeset.html.erb
app/views/changesets/show.html.erb
app/views/traces/_trace.html.erb

index 195332b099d5ff98c0a4c600a614030033c94067..bf6c270cffa62d4e3d5c8d6217da8fc64283e688 100644 (file)
@@ -7,7 +7,7 @@
   #<%= link_to_unless_current common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %>
 </h4>
 
-<p class="fst-italic">
+<p class="fs-6 overflow-x-auto">
   <% if common_details.changeset.tags["comment"].present? %>
     <%= linkify(common_details.changeset.tags["comment"]) %>
   <% else %>
index 6362330a9c58d117bb92e747879467a649bc2072..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="fst-italic">
+  <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>
index 6ae0efb8b25af84a1428a3ebfed25abe54be37c5..915b0ef352531c5bbbb749e27fb5299f597df6e4 100644 (file)
@@ -3,7 +3,7 @@
 <%= render "sidebar_header", :title => t(".title", :id => @changeset.id) %>
 
 <div class="browse-section">
-  <p class="fst-italic">
+  <p class="fs-6 overflow-x-auto">
     <%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>
   </p>
   <p class="details"><%= changeset_details(@changeset) %></p>
index 37713679f1c12ee6a58ee7119f1f8999de900f3f..ba503f7306d335b8eb43d580bd4c33488710d864 100644 (file)
@@ -40,7 +40,7 @@
                                          :tags => safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %>
       <% end %>
     </p>
-    <p class="fst-italic mb-0">
+    <p class="fs-6 mb-0">
       <%= trace.description %>
     </p>
   </td>