From 7978aa3b092688bf8b92cb1033552bb9c50b8327 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Thu, 23 Apr 2026 10:37:56 +0200 Subject: [PATCH] fix hat bar visible in welcome mode, fix overflow Hat bar moved above the Stack so it stays visible when the welcome overlay shows. Recent project path row uses Flexible with ellipsis to prevent horizontal overflow. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/app.dart | 16 +++++++++++----- lib/builtin/welcome/src/welcome_view.dart | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index 13f2f30f..0b620ff2 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -89,11 +89,18 @@ class _RootShellState extends State<_RootShell> { windowControls: widget.services.window, child: DialogHost( router: widget.services.dialog, - child: Stack( + child: Column( children: [ - const Positioned.fill(child: RootLayout()), - const ClidePalette(), - const Positioned.fill(child: _WelcomeOverlay()), + _HatBar(kernel: widget.services), + Expanded( + child: Stack( + children: [ + const Positioned.fill(child: RootLayout()), + const ClidePalette(), + const Positioned.fill(child: _WelcomeOverlay()), + ], + ), + ), ], ), ), @@ -136,7 +143,6 @@ class RootLayout extends StatelessWidget { return Column( children: [ - _HatBar(kernel: kernel), Expanded( child: Row( children: [ diff --git a/lib/builtin/welcome/src/welcome_view.dart b/lib/builtin/welcome/src/welcome_view.dart index fe66a902..31a21e57 100644 --- a/lib/builtin/welcome/src/welcome_view.dart +++ b/lib/builtin/welcome/src/welcome_view.dart @@ -244,7 +244,7 @@ class _RecentRowState extends State<_RecentRow> { const SizedBox(height: 3), Row( children: [ - ClideText(widget.project.relativePath, muted: true, fontSize: 13, fontFamily: clideMonoFamily), + Flexible(child: ClideText(widget.project.relativePath, muted: true, fontSize: 13, fontFamily: clideMonoFamily, maxLines: 1, overflow: TextOverflow.ellipsis)), if (widget.project.branch != null) ...[ ClideText(' ยท ', muted: true, fontSize: 13), ClideIcon(PhosphorIcons.gitBranch, size: 11, color: widget.tokens.globalTextMuted),