Update vulnerable dependencies and migrate to Iced 0.14.
This commit is contained in:
@@ -516,7 +516,7 @@ fn post_filter_panel(
|
||||
Message::SetPostStatusFilter,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
|
||||
if !filter.available_languages.is_empty() {
|
||||
let languages = filter
|
||||
@@ -531,7 +531,7 @@ fn post_filter_panel(
|
||||
Message::SetPostLanguageFilter,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
// Calendar archive
|
||||
@@ -544,7 +544,7 @@ fn post_filter_panel(
|
||||
Message::SetPostCalendarMonth,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
// Tag chips
|
||||
@@ -556,7 +556,7 @@ fn post_filter_panel(
|
||||
Message::TogglePostTagFilter,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
// Category chips (not shown for Pages since Pages IS a category filter)
|
||||
@@ -568,7 +568,7 @@ fn post_filter_panel(
|
||||
Message::TogglePostCategoryFilter,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
sections.push(
|
||||
@@ -596,7 +596,7 @@ fn post_filter_panel(
|
||||
.spacing(2)
|
||||
.into(),
|
||||
);
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
|
||||
// Clear all filters button
|
||||
if filter.has_active_filters() {
|
||||
@@ -631,7 +631,7 @@ fn media_filter_panel(filter: &MediaFilter, locale: UiLocale) -> Element<'static
|
||||
Message::SetMediaCalendarMonth,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
if !filter.available_tags.is_empty() {
|
||||
@@ -642,7 +642,7 @@ fn media_filter_panel(filter: &MediaFilter, locale: UiLocale) -> Element<'static
|
||||
Message::ToggleMediaTagFilter,
|
||||
locale,
|
||||
));
|
||||
sections.push(Space::with_height(4.0).into());
|
||||
sections.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
if filter.has_active_filters() {
|
||||
@@ -712,7 +712,7 @@ pub fn view(
|
||||
let header_row: Element<'static, Message> = if let Some(action) = create_action {
|
||||
row![
|
||||
header,
|
||||
Space::with_width(Length::Fill),
|
||||
Space::new().width(Length::Fill),
|
||||
keyboard::button(
|
||||
text(t(locale, "common.add"))
|
||||
.size(11)
|
||||
@@ -764,9 +764,9 @@ pub fn view(
|
||||
|
||||
// Filter panel (collapsible)
|
||||
if filter.filter_panel_visible {
|
||||
top_items.push(Space::with_height(4.0).into());
|
||||
top_items.push(Space::new().height(4.0).into());
|
||||
top_items.push(post_filter_panel(filter, is_pages, locale));
|
||||
top_items.push(Space::with_height(4.0).into());
|
||||
top_items.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
// Post list
|
||||
@@ -848,7 +848,7 @@ pub fn view(
|
||||
for p in &drafts {
|
||||
top_items.push(make_post_item(p));
|
||||
}
|
||||
top_items.push(Space::with_height(6.0).into());
|
||||
top_items.push(Space::new().height(6.0).into());
|
||||
}
|
||||
|
||||
// Published section
|
||||
@@ -861,7 +861,7 @@ pub fn view(
|
||||
for p in &published {
|
||||
top_items.push(make_post_item(p));
|
||||
}
|
||||
top_items.push(Space::with_height(6.0).into());
|
||||
top_items.push(Space::new().height(6.0).into());
|
||||
}
|
||||
|
||||
// Archived section
|
||||
@@ -914,9 +914,9 @@ pub fn view(
|
||||
|
||||
// Filter panel (collapsible)
|
||||
if filter.filter_panel_visible {
|
||||
top_items.push(Space::with_height(4.0).into());
|
||||
top_items.push(Space::new().height(4.0).into());
|
||||
top_items.push(media_filter_panel(filter, locale));
|
||||
top_items.push(Space::with_height(4.0).into());
|
||||
top_items.push(Space::new().height(4.0).into());
|
||||
}
|
||||
|
||||
if media.is_empty() {
|
||||
@@ -1308,7 +1308,7 @@ pub fn view(
|
||||
SidebarView::Git => crate::views::git::sidebar_view(git_state, offline_mode, locale),
|
||||
};
|
||||
|
||||
let content = column![header_row, Space::with_height(8.0), body,]
|
||||
let content = column![header_row, Space::new().height(8.0), body,]
|
||||
.spacing(4)
|
||||
.padding(12);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user