From 06bd43e46f9ff2c8f0eb2391b818b0f89a5278ba Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Wed, 25 Nov 2026 17:20:44 +0800 Subject: [PATCH] fix(agents): optically center the full-page New Task prompt (#5849) --- src/features/agents/Home.module.css | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/features/agents/Home.module.css b/src/features/agents/Home.module.css index 300ee6efaa..f96aab7d38 100644 --- a/src/features/agents/Home.module.css +++ b/src/features/agents/Home.module.css @@ -8,13 +8,13 @@ display: flex; flex-direction: column; align-items: center; - justify-content: flex-start; - padding: var(--space-4); + justify-content: center; + padding: 24px 24px 12vh; background: var(--bg-editor); color: var(--fg); } .inner { - /* A compact block at the top of the editor: narrower than a session's conversation. */ + /* A compact block in the middle of the page: narrower than a session's conversation. */ width: min(680px, 100%); display: flex; flex-direction: column; @@ -24,12 +24,14 @@ width: 100%; } .heading { - margin: 0; - padding: 0 4px; - font-size: var(--agent-fs-ui); - font-weight: 600; + margin: 0 0 10px; + font-size: calc(18px + var(--agent-font-zoom, 0px)); + font-weight: 500; + letter-spacing: -0.01em; line-height: 1.4; + text-align: center; color: var(--fg-strong); + text-wrap: balance; } /* A box to write in, not a search bar: room for a few lines before it grows. */ @@ -104,7 +106,12 @@ padding-bottom: var(--space-2); } .docked .heading { + margin: 0; + padding: 0 4px; + font-size: var(--agent-fs-ui); font-weight: 400; + letter-spacing: normal; + text-align: left; color: var(--fg-muted); }