From 9781f6eb9c7288e74b2c8f640acb2a6df4f8502e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 23 Nov 2023 13:07:18 +0100 Subject: [PATCH] Restore missing buttons in caption bar Those button, being width: 100% and display: block were not displayed AND were pushing out also the slideshow buttons. --- umap/static/umap/base.css | 2 ++ umap/static/umap/js/umap.js | 8 ++++---- umap/static/umap/map.css | 7 +++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index f13cf110..dc504a30 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -202,6 +202,8 @@ button.flat, padding: 0; text-align: left; min-height: inherit; + width: initial; + display: initial; text-decoration: underline; } .help-text, .helptext { diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index ed54f43b..eeeccf0b 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1744,16 +1744,16 @@ L.U.Map.include({ this.permissions.addOwnerLink('span', container) if (this.options.captionMenus) { L.DomUtil.createButton( - 'umap-about-link', + 'umap-about-link flat', container, - ` — ${L._('About')}`, + L._('About'), this.displayCaption, this ) L.DomUtil.createButton( - 'umap-open-browser-link', + 'umap-open-browser-link flat', container, - ` | ${L._('Browse data')}`, + L._('Browse data'), this.openBrowser, this ) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 434faae4..68bdecf5 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -600,6 +600,13 @@ ul.photon-autocomplete { .umap-main-edit-toolbox h3 { display: inline; } +.umap-caption-bar button { + margin-left: 10px; +} +.umap-caption-bar button + button:before { + content: '|'; + padding-right: 10px; +} .umap-main-edit-toolbox .umap-user { color: #fff; }