Skip to content

Commit 5ba0294

Browse files
committed
fix: use the alternative way to set ListColumn spacing
1 parent 69fdb3c commit 5ba0294

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cosmic-settings/src/pages/desktop/workspaces.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use cosmic::{
77
cosmic_config::{self, ConfigGet, ConfigSet},
88
iced::{widget, Alignment, Length},
9-
widget::{icon, radio, settings, text},
9+
widget::{icon, radio, settings, text, ListColumn},
1010
Apply, Element,
1111
};
1212
use cosmic_comp_config::workspace::{
@@ -285,8 +285,8 @@ fn multi_behavior() -> Section<crate::pages::Message> {
285285
.descriptions(descriptions)
286286
.view::<Page>(move |_binder, page, section| {
287287
let descriptions = &section.descriptions;
288-
settings::section()
289-
.title(&section.title)
288+
cosmic::widget::settings::section::with_column(
289+
ListColumn::default()
290290
.add(
291291
cosmic::iced::widget::column!(
292292
widget::vertical_space().height(1),
@@ -319,6 +319,8 @@ fn multi_behavior() -> Section<crate::pages::Message> {
319319
.spacing(cosmic::theme::active().cosmic().space_s())
320320
.align_x(Alignment::Center),
321321
)
322+
.spacing(0))
323+
.title(&section.title)
322324
.apply(Element::from)
323325
.map(crate::pages::Message::DesktopWorkspaces)
324326
})

0 commit comments

Comments
 (0)