From d682358306ab3c755d55dd408144cc43995ce715 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 1 Sep 2021 17:40:16 +0100 Subject: [PATCH] Limit width of marker labels in a better way --- src/scss/leaflet/_markers.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scss/leaflet/_markers.scss b/src/scss/leaflet/_markers.scss index 060bc6e..ed5e713 100644 --- a/src/scss/leaflet/_markers.scss +++ b/src/scss/leaflet/_markers.scss @@ -60,18 +60,17 @@ .marker__label { flex: 0 0 auto; - margin-left: 2px; z-index: 20; font-size: 1.5rem; line-height: 1; - white-space: pre-line; - color: var(--text-base); background: var(--background-dark); padding: 0.2rem; display: none; - overflow: hidden; + margin-left: 0.2rem; + width: max-content; + max-width: 30rem; @at-root .leaflet-pane--show-labels .marker__label { display: block !important;