From cabee400321555597cfa3b8a348d702ee758d530 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 5 Sep 2023 11:50:58 +0300 Subject: [PATCH 1/8] Mute hidden comment text in each table cell --- app/views/diary_entries/comments.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/diary_entries/comments.html.erb b/app/views/diary_entries/comments.html.erb index e3a7ff23e..0d6ddfb01 100644 --- a/app/views/diary_entries/comments.html.erb +++ b/app/views/diary_entries/comments.html.erb @@ -16,10 +16,10 @@ <% @comments.each do |comment| -%> - "> - <%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %> - <%= time_ago_in_words(comment.created_at, :scope => :"datetime.distance_in_words_ago") %> - <%= comment.body.to_html %> + + "><%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %> + "><%= time_ago_in_words(comment.created_at, :scope => :"datetime.distance_in_words_ago") %> + "><%= comment.body.to_html %> <% end -%> From 0ea6646fb6d86b11c78bc554168b76096fe21821 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 6 Sep 2023 15:31:49 +0100 Subject: [PATCH 2/8] Use bootstrap for share forms This fixes alignment of the checkboxes, and uses bootstrap form controls for the image format and scale inputs. Move the custom dimensions input to beside the custom dimensions display. --- app/assets/javascripts/leaflet.share.js | 99 ++++++++++++++----------- app/assets/stylesheets/common.scss | 9 +-- 2 files changed, 59 insertions(+), 49 deletions(-) diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 7b1c995c2..c72760c97 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -23,17 +23,15 @@ L.OSM.share = function (options) { $("
") .attr("class", "form-check mb-3") .appendTo($form) - .append( - $("