From f37da9a6275342131fdf2eb962ebe09b256a553f Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 26 Apr 2026 09:13:12 +0100 Subject: [PATCH] fix(chat): keep titlesticky at top of title bar (#7590 review) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous pass bottom-aligned both corner controls via align-items: flex-end on #titlebar. That correctly placed the close button (#titlecross) on the title's baseline, but it also dragged the much smaller "stick to screen" button (#titlesticky) down to the same baseline — visibly far below where it sat in the original layout. Switch to per-control align-self so each lands where it should: - #titlesticky → align-self: flex-start (top, where it always was) - #titlecross → align-self: flex-end (bottom, on the title's baseline) - #titlelabel → align-self: center (don't stretch the heading) Drop align-items from #titlebar so the defaults don't override these. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/static/css/pad/chat.css | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/static/css/pad/chat.css b/src/static/css/pad/chat.css index 5d1f9c134..9ad53639e 100644 --- a/src/static/css/pad/chat.css +++ b/src/static/css/pad/chat.css @@ -62,16 +62,14 @@ #titlebar { font-weight: bold; padding: 5px; - /* Lay the label and corner controls on a single row and bottom-align - them. The controls were previously `float: right` `` tags, so the - small minus/block glyphs sat at the *baseline* of the line and looked - anchored to the bottom of the title bar. After #7584 turned them into - `