mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix hover tooltip value collapsing
This commit is contained in:
parent
5d475ae32e
commit
533d4d57c6
@ -83,6 +83,12 @@ fn expr_tooltip(world: &(dyn World + 'static), leaf: &LinkedNode) -> Option<Tool
|
|||||||
last = Some((value, 1));
|
last = Some((value, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some((_, count)) = last {
|
||||||
|
if count > 1 {
|
||||||
|
write!(pieces.last_mut().unwrap(), " (x{count})").unwrap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if iter.next().is_some() {
|
if iter.next().is_some() {
|
||||||
pieces.push("...".into());
|
pieces.push("...".into());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user