From 0466ccc3349b9f93bbe7a9181bf11cfbac2f6532 Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Sat, 31 Oct 2026 12:39:55 -0600 Subject: [PATCH] Fix sidebar disclosure triangle rendering above the tag name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit summary's native ::marker triangle is positioned for inline content — once the tag-name + unread-count row needed to be a flex box (for v2026.10.31-15's tag unread counts), the marker got pushed onto its own line above instead of sitting beside it, confirmed via a screenshot after deploying that release. Replaces the native marker with a plain ::before triangle (hiding -webkit-details-marker too) so `summary` itself can safely be the flex row, with the triangle as a normal flex item that stays inline no matter what the rest of the row contains. Verified in the browser, including that collapse/expand still works and the triangle still rotates on open. Co-Authored-By: Claude Sonnet 5 --- static/css/base.css | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index 3c231f1..478f360 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -290,23 +290,48 @@ form p { padding: 0 0.5rem; } +/* `summary`'s native disclosure triangle is a ::marker, positioned for + list-item/inline content — once the tag-name + unread-count row below + needed to be a flex box (block-level), the marker got pushed onto its + own line above instead of sitting beside it. Replacing it with a + plain ::before triangle lets `summary` itself be a flex row with that + triangle as a normal flex item, so it stays inline no matter what the + rest of the row contains. */ .sidebar-section summary { + display: flex; + align-items: center; + gap: 0.4rem; padding: 0.4rem 0.75rem; cursor: pointer; color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; + list-style: none; +} + +.sidebar-section summary::-webkit-details-marker { + display: none; +} + +.sidebar-section summary::before { + content: "▶"; + flex: 0 0 auto; + font-size: 0.6rem; + transition: transform 0.1s ease; +} + +.sidebar-section[open] > summary::before { + transform: rotate(90deg); } -/* An inner wrapper, not `summary` itself — `summary`'s native disclosure - triangle only renders with its default `display: list-item`, so the - flex layout for the tag name + unread count lives one level in. */ .sidebar-tag-row { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; + flex: 1 1 auto; + min-width: 0; } .sidebar-tag-link {