idk
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2025-07-14 12:54:32 -05:00
parent 89721b947d
commit 47dea95ba6

View file

@ -9,12 +9,14 @@ use cosmic::{
Background, Border, Color, ContentFit, Font, Length, Shadow,
Vector,
},
iced_core::text::Span,
iced_widget::{
rich_text,
scrollable::{
scroll_to, AbsoluteOffset, Direction, Scrollbar,
},
span, stack,
text::Rich,
},
prelude::*,
widget::{
@ -565,9 +567,7 @@ pub(crate) fn slide_view(
.chars()
.map(
|c| -> cosmic::iced_core::text::Span<
'_,
(),
Font,
Message,
> {
span(format!("{}\n", c))
.size(font_size)
@ -580,7 +580,7 @@ pub(crate) fn slide_view(
.padding(10)
},
)
.collect();
.collect::<Vec<Span<Message>>>();
rich_text(chars).center().into()
})
.collect();