feat(commandline): float as bottom-centre overlay over the viewport

The command-line panel used to consume a full-width row at the bottom
of the main column, taking vertical space away from the drawing area
even when no command was active. Move it onto the viewport stack as a
fixed-width 720 px pill aligned to the bottom-centre, with rounded
corners so it reads as a floating element. The status bar still owns
the very bottom of the window.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 4.7 committed 2026-05-26 19:23:19 +03:00
1 parent 979ca28632
commit 862e5aed31
2 files changed
+26 -9

No files matched your search

+4 -4
View File
@@ -149,7 +149,7 @@ impl CommandLine {
a: 1.0,
},
width: 1.0,
radius: 0.0.into(),
radius: 2.0.into(),
},
icon: Color::WHITE,
placeholder: Color {
@@ -183,7 +183,7 @@ impl CommandLine {
border: Border {
color: BORDER_COLOR,
width: 1.0,
radius: 0.0.into()
radius: 3.0.into()
},
..Default::default()
})
@@ -194,11 +194,11 @@ impl CommandLine {
border: Border {
color: BORDER_COLOR,
width: 1.0,
radius: 0.0.into(),
radius: 4.0.into(),
},
..Default::default()
})
.width(Length::Fill)
.width(Length::Fixed(720.0))
.into()
}
}