mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-22 18:22:16 +00:00
Dock: the » chevron runs window.collapseToIcons
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
1b1a66ee77
commit
dcb0417b63
1 file changed
+1
-1
@@ -69,7 +69,7 @@ pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) {
|
||||
ui,
|
||||
|ui| {
|
||||
if dock_header(ui, &t, "»").clicked() {
|
||||
app.ui.dock_expanded = false;
|
||||
let _ = app.run("window.collapseToIcons", serde_json::json!({}));
|
||||
}
|
||||
// Tab strip (27 pt).
|
||||
let (strip, _) = ui.allocate_exact_size(vec2(ui.available_width(), 27.0), Sense::hover());
|
||||
|
||||
Reference in new issue
Block a user