alot of ui improvements
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2025-09-09 09:27:00 -05:00
parent f6ebbe7391
commit 159778b816
4 changed files with 122 additions and 174 deletions

View file

@ -818,8 +818,8 @@ pub(crate) fn slide_view<'a>(
if let Some(handle) = &text.handle {
image(handle)
.content_fit(ContentFit::ScaleDown)
.width(width)
.height(size.height)
.width(Length::Shrink)
.height(Length::Shrink)
.into()
} else {
Space::with_width(0).into()
@ -883,8 +883,11 @@ pub(crate) fn slide_view<'a>(
}
}
};
let stack =
stack!(black, background.center(Length::Fill), text);
let stack = stack!(
black,
background.center_x(Length::Fill),
container(text).center(Length::Fill)
);
Container::new(stack).center(Length::Fill).into()
});
// let vid = if let Some(video) = &video {