From ca0a9d5cb34afb0a4493fafd5324c5658ad1b07f Mon Sep 17 00:00:00 2001 From: interlope Date: Tue, 2 Jun 2026 18:27:56 +0200 Subject: [PATCH] feat: enhance plugin categories layout for better text handling and responsiveness feat: improve back-to-top button visibility by conditionally rendering on content pages only --- css/style.css | 15 +++++++++++---- js/blowdit.js | 4 ++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index 13d87fe..fc95604 100644 --- a/css/style.css +++ b/css/style.css @@ -1171,11 +1171,18 @@ img.nav-svg-icon { } .plugin.plugin-categories li a { - display: block; + /* fill the grid cell and centre the label; tighter side padding + wrapping + so names fit the narrow columns instead of being truncated. Flex + 100% + height keeps both pills in a row the same height when one wraps. */ + display: flex; + align-items: center; + justify-content: center; + height: 100%; text-align: center; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + padding: 0.3rem 0.55rem; + line-height: 1.25; + overflow-wrap: anywhere; + hyphens: auto; } /* Search plugin — target input directly in case the plugin omits form-control */ diff --git a/js/blowdit.js b/js/blowdit.js index 3617937..39ed6c6 100644 --- a/js/blowdit.js +++ b/js/blowdit.js @@ -757,8 +757,12 @@ /* -------------------------------------------------------- Back-to-top button — appears after scrolling down. + Only on article/page views (where there's .content to read), not on the + homepage post list. -------------------------------------------------------- */ (function () { + if (!document.querySelector('.content')) return; + var btn = document.createElement('button'); btn.type = 'button'; btn.className = 'back-to-top';