feat: add Ellipsize to widgets

This commit is contained in:
Hojjat 2026-02-19 09:27:37 -07:00 committed by Ashley Wulber
parent f2ef716ad5
commit cc670e1966
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
18 changed files with 181 additions and 9 deletions

View file

@ -157,6 +157,18 @@ impl text::Paragraph for () {
fn span_bounds(&self, _index: usize) -> Vec<Rectangle> {
vec![]
}
fn min_width(&self) -> f32 {
self.min_bounds().width
}
fn min_height(&self) -> f32 {
self.min_bounds().height
}
fn ellipsize(&self) -> text::Ellipsize {
text::Ellipsize::default()
}
}
impl text::Editor for () {