This commit is contained in:
parent
035f8896f1
commit
fae83aedc5
5 changed files with 44 additions and 40 deletions
|
@ -812,10 +812,10 @@ pub(crate) fn slide_view(
|
|||
let text: Element<Message> =
|
||||
if let Some(text) = &slide.text_svg {
|
||||
if let Some(handle) = &text.handle {
|
||||
Image::new(handle)
|
||||
image(handle)
|
||||
.content_fit(ContentFit::Cover)
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill)
|
||||
.width(width)
|
||||
.height(size.height)
|
||||
.into()
|
||||
} else {
|
||||
Space::with_width(0).into()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue