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:
parent
979ca28632
commit
862e5aed31
2 changed files with 26 additions and 9 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue