feat(command-line): resize history panel

Refs #456
This commit is contained in:
Hakan Seven committed 2026-08-04 16:54:59 +03:00
1 parent 282a5176af
commit b0806679c9
6 files changed
+180 -23

No files matched your search

+11
View File
@@ -1499,6 +1499,7 @@ impl OpenCADStudio {
allow_autocomplete,
dyn_capturing,
&self.history_content,
self.win_size.1,
);
let center_stack: Element<'_, Message> = if tab.is_start {
column![
@@ -1534,6 +1535,16 @@ impl OpenCADStudio {
.into()
};
let center_stack: Element<'_, Message> = if self.command_history_resizing {
mouse_area(center_stack)
.on_move(Message::CommandHistoryResizeMove)
.on_release(Message::CommandHistoryResizeRelease)
.interaction(iced::mouse::Interaction::ResizingVertically)
.into()
} else {
center_stack
};
let main_ui = container({
// Clean-screen mode drops the ribbon for a full-canvas view; the
// status bar stays so the mode can be toggled back off.