diff --git a/Cargo.lock b/Cargo.lock index 078a038be..6ea38d0f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4405,6 +4405,7 @@ dependencies = [ "eframe", "egui", "serde", + "serde_json", "web-time", ] diff --git a/crates/ui-panels/tests/it/sections/footer_row.rs b/crates/ui-panels/tests/it/sections/footer_row.rs index 3dfe5d05a..cd886691c 100644 --- a/crates/ui-panels/tests/it/sections/footer_row.rs +++ b/crates/ui-panels/tests/it/sections/footer_row.rs @@ -4,7 +4,7 @@ use craft_behavior::IconId; use craft_ui::buttons::IconButton; use craft_ui::choice::Segmented; -use craft_ui::contract::{Bind, Entry, ListDrag, RowAlign, Show as _, ShowContainer as _}; +use craft_ui::contract::{Bind, Entry, ListDrag, Props as _, RowAlign, Show as _, ShowContainer as _}; use craft_ui::layout_components::{Row, Stack}; use craft_ui::sections::{DropAction, FooterAction, FooterBar, ReorderableSections, SectionKey, SectionLayout, SectionSpec}; use craft_ui::testing::{Fixture, pointer, trial}; diff --git a/crates/ui-shell/Cargo.toml b/crates/ui-shell/Cargo.toml index d55e80fcb..8f1272d4c 100644 --- a/crates/ui-shell/Cargo.toml +++ b/crates/ui-shell/Cargo.toml @@ -52,6 +52,7 @@ craft-theme = { workspace = true } craft-ui-test-kit = { workspace = true } craft-window = { workspace = true } egui = { workspace = true } +serde_json = { workspace = true } [[test]] name = "it" diff --git a/crates/ui-shell/src/shell/app_shell.rs b/crates/ui-shell/src/shell/app_shell.rs index ecd5b0285..cc2705cb2 100644 --- a/crates/ui-shell/src/shell/app_shell.rs +++ b/crates/ui-shell/src/shell/app_shell.rs @@ -659,7 +659,7 @@ impl<'a, S> AppShell<'a, S> { if let Some(bar) = bar_extent.filter(|_| !bare) { let target = PlaceTarget { body: regions.body, bar, held }; let zone = DropZone::new(ui.layer_id(), regions.body); - landed = zone_target::(ui, ui.id().with("options_place"), zone, &target); + landed = zone_target::(ui, ui.scope_id().with("options_place"), zone, &target); } show_slots(ui, true, app); if let Some(dialogs) = WindowDialogs::existing(ui.ctx(), &window) {