refactor: revert some changes to main

This commit is contained in:
Tobias Schmitz 2025-07-17 17:31:46 +02:00
parent f8f900d40b
commit 79423f3033
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ impl Item<'_, '_> {
Self::Frame(frame, _) => {
frame.size().is_zero()
&& frame.items().all(|(_, item)| {
matches!(item, FrameItem::Link(..) | FrameItem::Tag(_))
matches!(item, FrameItem::Link(_, _) | FrameItem::Tag(_))
})
}
Self::Placed(_, placed) => !placed.float,

View File

@ -167,7 +167,7 @@ fn render_frame(canvas: &mut sk::Pixmap, state: State, frame: &Frame) {
FrameItem::Image(image, size, _) => {
image::render_image(canvas, state.pre_translate(*pos), image, *size);
}
FrameItem::Link(..) => {}
FrameItem::Link(_, _) => {}
FrameItem::Tag(_) => {}
}
}