var name ellipsis

This commit is contained in:
Martin Kavík 2024-06-18 17:24:46 +02:00
parent 793ad37457
commit f08b9565a4
2 changed files with 22 additions and 9 deletions

View file

@ -220,6 +220,16 @@ impl WaveformPanel {
.s(RoundedCorners::new().left(15).right(5))
.label(
El::new()
.update_raw_el(|raw_el| {
raw_el
// @TODO move `title` to MZ API? (as `native_tooltip`?)
.attr("title", name)
// Note: `text-overflow` / ellipsis` doesn't work with flex and dynamic sizes
.style("text-overflow", "ellipsis")
.style("display", "inline-block")
})
.s(Scrollbars::both().visible(false))
.s(Width::default().max(400))
.s(Align::new().left())
.s(Padding::new().left(20).right(17).y(10))
.child(name),