mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
Document Info: say in the row comment which values wrap
This commit is contained in:
1 parent
7dd3aa5047
commit
533a923fa1
1 file changed
+2
-2
@@ -45,8 +45,8 @@ pub(crate) fn row(ui: &mut Ui, label: &str, value: &str) -> bool {
|
||||
Row::new().fill_width().align(RowAlign::SpaceBetween).wrap(!fits).show(ui, |ui, _| {
|
||||
Text::new(label.to_string()).shade(Shade::Muted).show(ui);
|
||||
// The value can be selected and copied, and a click copies all of it (#8432). A drag selects
|
||||
// and a Shift-click extends the selection, so neither copies. A value too long to fit beside
|
||||
// its label wraps inside the panel.
|
||||
// and a Shift-click extends the selection, so neither copies. A value wider than the panel
|
||||
// wraps inside it.
|
||||
let shown = SelectableText::new(label.to_string(), value).multiline().show(ui);
|
||||
clicked = copy_shown(ui, &shown, value);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user