From d2f901380a0816d82f443dcf36c3d63fb5a1909b Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Sun, 31 May 2026 09:18:04 +0800 Subject: [PATCH] fix(editor): guard flex children on drag + property-panel and desktop chrome fixes Canvas / layout: - Guard flex flow-children from free-drag and add a 4px drag threshold, so a first click no longer materializes x/y on a flow child and collapses the auto-layout frame. Property panel: - Gap/justify radios disable the gap input on space-between/around; compact gap rows with vertically-centered input text. - Padding-mode gear popover hover; the pin is anchor-scoped so it no longer leaks into the next selection. - Font-weight dropdown: full 100-900 numeric options + row hover. - Stroke hex seeds the displayed swatch colour (not #000000); stroke width now persists on commit. Desktop: - Traffic-light inset now applies on launch (casement windowDidBecomeKey). - File-drop overlay; git commit caret blink. Refactor: - Split property_dispatch / git_panel / property-panel tests under the 800-line cap; reorganise panel tests by topic. --- crates/op-editor-core/src/agent_settings.rs | 1 + crates/op-editor-core/src/test_support.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/op-editor-core/src/agent_settings.rs b/crates/op-editor-core/src/agent_settings.rs index f95cc9026..8207ea90b 100644 --- a/crates/op-editor-core/src/agent_settings.rs +++ b/crates/op-editor-core/src/agent_settings.rs @@ -439,6 +439,7 @@ impl AgentSettings { ) } + #[allow(clippy::too_many_arguments)] pub fn add_acp_agent_config( &mut self, display_name: impl Into, diff --git a/crates/op-editor-core/src/test_support.rs b/crates/op-editor-core/src/test_support.rs index b9a24db3e..8c46939d1 100644 --- a/crates/op-editor-core/src/test_support.rs +++ b/crates/op-editor-core/src/test_support.rs @@ -169,6 +169,7 @@ pub fn flex_frame( ..Default::default() }, children: Some(children), + image_search_query: None, reusable: None, slot: None, state: None,