Update vulnerable dependencies and migrate to Iced 0.14.
This commit is contained in:
@@ -60,7 +60,7 @@ fn surface_view<'a>(
|
||||
&format!("chat.surface.type.{}", surface.kind.as_str()),
|
||||
)
|
||||
});
|
||||
let mut header = row![text(title).size(14), Space::with_width(Length::Fill),]
|
||||
let mut header = row![text(title).size(14), Space::new().width(Length::Fill),]
|
||||
.spacing(8)
|
||||
.align_y(Alignment::Center);
|
||||
if has_title {
|
||||
@@ -196,7 +196,8 @@ fn form<'a>(
|
||||
let key = field.key.clone();
|
||||
let control: Element<'a, Message> = match field.input_type {
|
||||
FormInputType::Checkbox => keyboard::focusable(
|
||||
checkbox(label, field.value.as_bool().unwrap_or(false))
|
||||
checkbox(field.value.as_bool().unwrap_or(false))
|
||||
.label(label.to_string())
|
||||
.on_toggle(move |value| Message::ChatSurfaceFieldChanged {
|
||||
surface_id: surface_id.clone(),
|
||||
field: key.clone(),
|
||||
@@ -355,7 +356,7 @@ fn mindmap<'a>(surface: &'a InlineSurface, locale: UiLocale) -> Element<'a, Mess
|
||||
rows.into_iter()
|
||||
.map(|(depth, label)| {
|
||||
row![
|
||||
Space::with_width(Length::Fixed(depth as f32 * 18.0)),
|
||||
Space::new().width(Length::Fixed(depth as f32 * 18.0)),
|
||||
text(if depth == 0 { "◆" } else { "└" })
|
||||
.size(11)
|
||||
.color(inputs::SECTION_COLOR),
|
||||
|
||||
Reference in New Issue
Block a user