Panics · P02 Typography: Link takes its handler, an unknown zone reads as UTC and says so, a long highlight query logs

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 16:02:40 -04:00
1 parent e5166e9e26
commit f46cc4e7c3
11 files changed
+132 -60

No files matched your search

+11 -10
View File
@@ -127,16 +127,17 @@ fn cut_line(text: SharedString, fit: fn(&str, Pixels, &mut Window) -> String) ->
let style = window.text_style();
let line = style.line_height_in_pixels(window.rem_size());
let x = offset(style.text_align, bounds.size.width - shaped.width);
shaped
.paint(
bounds.origin + point(x, Pixels::ZERO),
line,
TextAlign::Left,
None,
window,
cx,
)
.expect("a cut line paints");
let painted = shaped.paint(
bounds.origin + point(x, Pixels::ZERO),
line,
TextAlign::Left,
None,
window,
cx,
);
if let Err(error) = painted {
log::error!("ellipsis: a cut line failed to paint: {error:#}");
}
},
)
.absolute()