From 8c90535105744702ab06b56037288b6b40cf2c94 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 3 Apr 2025 17:51:37 +0200 Subject: [PATCH] chore: better CSS for tags in maps list Co-authored-by: David Larlet --- umap/static/umap/content.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index 3ba0329b..907736ef 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -186,13 +186,25 @@ h2.tabs a:hover { .tag-list { margin-top: var(--text-margin); margin-bottom: var(--text-margin); + display: flex; + flex-wrap: wrap; + gap: calc(var(--gutter) / 2 ); + justify-content: center; } .tag-list li { - border: 1px solid var(--color-darkCyan); + border: 1px solid var(--color-darkBlue); border-radius: 3vmin; display: inline-block; padding: var(--button-padding-small); +} +.tag-list li a { + color: var(--color-darkBlue); + max-width: 125px; + display: inline-block; + overflow: hidden; white-space: nowrap; + text-overflow: ellipsis; + vertical-align: middle; } /* **************************** */