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) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 10:37:56 +02:00
co-authored by Claude Opus 4.6
parent 80b13e8e4b
commit 7978aa3b09
2 changed files with 12 additions and 6 deletions
+11 -5
View File
@@ -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: [
+1 -1
View File
@@ -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),