From: Tom Hughes Date: Sun, 9 Jun 2024 10:52:56 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4888' X-Git-Tag: live~581 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c93aa80fef4ca68275fcfb161601c21c6ef286ef?hp=16d355f2b7c130b3e27713e6b46bb841698d4a06 Merge remote-tracking branch 'upstream/pull/4888' --- diff --git a/app/assets/javascripts/richtext.js b/app/assets/javascripts/richtext.js index ea2efcfad..3036f169b 100644 --- a/app/assets/javascripts/richtext.js +++ b/app/assets/javascripts/richtext.js @@ -41,7 +41,6 @@ $(document).ready(function () { $(".richtext_dopreview").click(function (event) { var editor = $(this).parents(".richtext_container").find("textarea"); var preview = $(this).parents(".richtext_container").find(".richtext_preview"); - var width = editor.outerWidth() - preview.outerWidth() + preview.width(); var minHeight = editor.outerHeight() - preview.outerHeight() + preview.height(); if (preview.contents().length === 0) { @@ -56,7 +55,6 @@ $(document).ready(function () { } editor.hide(); - preview.width(width); preview.css("min-height", minHeight + "px"); preview.show(); diff --git a/config/locales/en.yml b/config/locales/en.yml index 1da263d77..32ecbf7cd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2173,9 +2173,6 @@ en: index: js_1: "You are either using a browser that does not support JavaScript, or you have disabled JavaScript." js_2: "OpenStreetMap uses JavaScript for its slippy map." - permalink: Permalink - shortlink: Shortlink - createnote: Add a note license: copyright: "Copyright OpenStreetMap and contributors, under an open license" license_url: "https://openstreetmap.org/copyright"