Parameters: show one rename tooltip per name (#10309)

Keep full names in the tooltip only when the name cell clips them, and keep
the double-click rename hint without stacking a second popup. Cover short
and long names, favorites, and double-click input with a regression test.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
MarkusRe
2026-10-31 22:48:33 +00:00
committed by GitHub
parent e0c1b8adbd
commit 4c3d1484c5
4 changed files with 75 additions and 3 deletions
+5
View File
@@ -319,6 +319,11 @@ board test captures both strip widths with expanded and collapsed browsers
| `Text::Inline` | Native truncated label; rect/handle `dialog:inline:TEXT` |
| `Text::Cell` | Fixed-height clipped clickable cell with tooltip; rect/handle `dialog:cell:TEXT` |
`name_cell_with_hint(ui, name, strong, hint)` keeps the name cell's allocation and
scenario identity, but owns its single tooltip: the action hint alone when the
name fits, or the full name followed by the hint when it is clipped. Use it instead
of adding a second hover tooltip to `Text::NameCell`.
Examples:
```rust