Pdfs now show the whole slide and will instead do black bars on top or sides
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2025-10-20 15:17:58 -05:00
parent 470e14e5ca
commit 15d35f63ff

View file

@ -814,13 +814,9 @@ pub(crate) fn slide_view<'a>(
BackgroundKind::Pdf => {
if let Some(pdf) = slide.pdf_page() {
Container::new(
image(pdf)
.content_fit(ContentFit::Cover)
.width(width)
.height(size.height),
image(pdf).content_fit(ContentFit::Contain),
)
.center_x(width)
.center_y(size.height)
.center(Length::Fill)
.clip(true)
} else {
Container::new(Space::new(0.0, 0.0))