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';