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:
+11
-5
@@ -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: [
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user