From a457d91b504b38b683840935021d4474108ce367 Mon Sep 17 00:00:00 2001 From: TC Date: Wed, 10 Jun 2026 22:45:30 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20focus=20mode=20doesn't=20minimiz?= =?UTF-8?q?e=20bars=20on=20top=20level=20documents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/styles/app.css | 47 ++++++++++--------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/src/renderer/styles/app.css b/src/renderer/styles/app.css index d65b74e..19910a4 100644 --- a/src/renderer/styles/app.css +++ b/src/renderer/styles/app.css @@ -7,7 +7,20 @@ transition: grid-template-columns 0.25s ease, grid-template-rows 0.25s ease; } +.app-layout[data-sidebar='closed'] { + grid-template-columns: 0 1fr 340px; +} + +.app-layout[data-chat='closed'] { + grid-template-columns: 220px 1fr 0; +} + +.app-layout[data-sidebar='closed'][data-chat='closed'] { + grid-template-columns: 0 1fr 0; +} + /* ─── Focus / distraction-free mode ───────────────────────────── */ +/* Declared after sidebar/chat rules so it wins at equal specificity */ .app-layout[data-focus='on'] { grid-template-columns: 0 1fr 0; grid-template-rows: 0 100vh; @@ -43,40 +56,6 @@ transform: translateY(0); } -.focus-exit-btn { - position: fixed; - top: 10px; - right: 14px; - z-index: 9999; - background: none; - border: 1px solid var(--border); - color: var(--text-muted); - font-size: 13px; - padding: 3px 7px; - border-radius: 4px; - cursor: pointer; - opacity: 0.12; - transition: opacity 0.2s; - -webkit-app-region: no-drag; -} - -.focus-exit-btn:hover { - opacity: 0.6; - color: var(--text-primary); -} - -.app-layout[data-sidebar='closed'] { - grid-template-columns: 0 1fr 340px; -} - -.app-layout[data-chat='closed'] { - grid-template-columns: 220px 1fr 0; -} - -.app-layout[data-sidebar='closed'][data-chat='closed'] { - grid-template-columns: 0 1fr 0; -} - .app-titlebar { grid-column: 1 / -1; grid-row: 1;