From 98c4022bf56a58a69ac9d92c8e99a0fffc90e75f Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 13 Oct 2026 12:32:27 +0000 Subject: [PATCH] Integration: format --- crates/ui-egui/src/panels/properties.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/properties.rs b/crates/ui-egui/src/panels/properties.rs index a364f5a7a..ffcd894a1 100644 --- a/crates/ui-egui/src/panels/properties.rs +++ b/crates/ui-egui/src/panels/properties.rs @@ -2153,7 +2153,12 @@ pub fn links_panel(app: &mut DesignApp, ui: &mut egui::Ui) { ui.data_mut(|d| d.insert_temp(sel_key, c)); } ui.add_space(6.0); - if let Some(path) = rows.iter().find(|r| r["asset"].as_u64().or_else(|| r["story"].as_u64()) == chosen).and_then(|r| r["path"].as_str()).filter(|path| !path.is_empty()) { + if let Some(path) = rows + .iter() + .find(|r| r["asset"].as_u64().or_else(|| r["story"].as_u64()) == chosen) + .and_then(|r| r["path"].as_str()) + .filter(|path| !path.is_empty()) + { // A selected link stays distinguishable even if two rows truncate to the same prefix. ui.add(egui::Label::new(egui::RichText::new(path).color(t.text_dim).size(11.0)).wrap()); ui.add_space(6.0);