DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: format
aiongg98c4022bf56a
diff --git a/crates/ui-egui/src/panels/properties.rs b/crates/ui-egui/src/panels/properties.rsindex 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);