Compare commits

...
Author SHA1 Message Date
Martin BallandClaude Opus 5.5 695d358ed1 Customize Ribbon: the "Show" column header is not clipped (#7981)
The toggle column was only as wide as its check box, so its header read "S...". It is now as wide as its header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
2026-11-30 19:28:59 +00:00
+4 -4
View File
@@ -256,10 +256,10 @@ impl RibbonDialog {
let source = TreeSource(&self.tree);
let mut selection = Selection::single(self.selected.clone());
let renamable: Vec<TreeItem> = self.tree.iter().filter(|row| self.renamable(&row.item)).map(|row| row.item.clone()).collect();
let columns = vec![
ColumnSpec::toggle(SHOWN, word("Show"), ToggleColumn::default()),
ColumnSpec::new(ColumnKey::new("name"), word("Ribbon tabs"), ColumnWidth::fill(1.0)),
];
let mut show = ColumnSpec::toggle(SHOWN, word("Show"), ToggleColumn::default());
// As wide as its header, not just its check box: "Show" read "S…".
show.width = ColumnWidth::Content;
let columns = vec![show, ColumnSpec::new(ColumnKey::new("name"), word("Ribbon tabs"), ColumnWidth::fill(1.0))];
let rows = &self.tree;
let out = List::new(word("Ribbon tabs"))
.id(self.tree_id(ui))