From 92cef7ac0acd51d096b98bfc97eb139fd33c9243 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 14 Nov 2026 16:48:15 +0000 Subject: [PATCH] panels-w8: clone the row icon (compile fix) --- crates/ui-patterns/src/patterns/panels/history.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ui-patterns/src/patterns/panels/history.rs b/crates/ui-patterns/src/patterns/panels/history.rs index 93b56ad1a..90a2895be 100644 --- a/crates/ui-patterns/src/patterns/panels/history.rs +++ b/crates/ui-patterns/src/patterns/panels/history.rs @@ -310,7 +310,6 @@ impl<'a> HistoryPanel<'a> { .can_rename(|key: &HistoryKey| matches!(key, HistoryKey::Snapshot(_))) .empty(words.history_empty.clone()) .selection(Bind::bound(&mut held)) - .sizing(Sizing::Fill) .enabled(enabled) .drag_payload(move |drag: &ListDrag| set.contains(&drag.grabbed).then(|| drag.clone())); @@ -327,7 +326,7 @@ impl<'a> HistoryPanel<'a> { let out = list.show_items(ui, &items, &mut |_, icx| { let row = &rows[icx.at]; let mut item = ListRow::new(row.label.clone()).cells(icx.cells()).state(icx.row.clone()); - if let Some(icon) = row.icon { + if let Some(icon) = row.icon.clone() { item = item.icon(IconSpec::svg(icon)); } if row.redo {