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

@ -566,6 +566,21 @@ impl<'a> Library {
.into()
}
pub async fn search_items(
&self,
query: String,
) -> Vec<ServiceItem> {
let song1 = Song {
title: "Death Was Arrested".to_string(),
..Default::default()
};
let song2 = Song {
title: "Smelly_Belly".to_string(),
..Default::default()
};
vec![ServiceItem::from(&song1), ServiceItem::from(&song2)]
}
// fn update_item<C: Content>(self, item: C) -> Task<Message> {
// let Some((kind, index)) = self.editing_item else {
// error!("Not editing an item");

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 {