From: Anton Khorev Date: Sat, 18 May 2024 16:40:34 +0000 (+0300) Subject: Let descriptions be horizontally scrollable on changeset/element pages X-Git-Tag: live~400^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/81732d6b0f9f716fb688692662c8316db0d85272?ds=inline;hp=-c Let descriptions be horizontally scrollable on changeset/element pages --- 81732d6b0f9f716fb688692662c8316db0d85272 diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 58956f9de..bf6c270cf 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -7,7 +7,7 @@ #<%= link_to_unless_current common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %> -

+

<% if common_details.changeset.tags["comment"].present? %> <%= linkify(common_details.changeset.tags["comment"]) %> <% else %> diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index 7c04ee284..6e4e953ff 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -3,7 +3,7 @@ <%= render "sidebar_header", :title => t(".title", :id => @changeset.id) %>

-

+

<%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>

<%= changeset_details(@changeset) %>