From 84760b603d3b5c3ae53f9cf5059ba9d8a66cff34 Mon Sep 17 00:00:00 2001 From: Vyn Date: Wed, 18 Jun 2025 18:31:05 +0200 Subject: [PATCH] Fix tasks and sidebar padding --- src/windows/AppWindow/AppWindow.slint | 4 +++- src/windows/AppWindow/views/SideBar.slint | 9 +++++++-- src/windows/AppWindow/views/TasksView.slint | 8 ++------ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/windows/AppWindow/AppWindow.slint b/src/windows/AppWindow/AppWindow.slint index e268388..8d82810 100644 --- a/src/windows/AppWindow/AppWindow.slint +++ b/src/windows/AppWindow/AppWindow.slint @@ -34,7 +34,9 @@ export component AppWindow inherits Window { clicked => { show-tasks = true } } } - SideBar {} + SideBar { + min-width: 256px; + } } VerticalLayout { diff --git a/src/windows/AppWindow/views/SideBar.slint b/src/windows/AppWindow/views/SideBar.slint index e7e17e2..26a25a8 100644 --- a/src/windows/AppWindow/views/SideBar.slint +++ b/src/windows/AppWindow/views/SideBar.slint @@ -10,14 +10,19 @@ export component SideBar inherits Rectangle { padding: 16px; spacing: 16px; HorizontalLayout { - alignment: space-between; - spacing: 64px; + alignment: stretch; VText { text: "Sources"; font-size: 1.5rem; + horizontal-stretch: 0; } + Rectangle { + horizontal-stretch: 1; + } + VActionButton { + horizontal-stretch: 0; icon-svg: Svg.plus; icon-colorize: Palette.green; background: transparent; diff --git a/src/windows/AppWindow/views/TasksView.slint b/src/windows/AppWindow/views/TasksView.slint index 3c1c80e..0245aff 100644 --- a/src/windows/AppWindow/views/TasksView.slint +++ b/src/windows/AppWindow/views/TasksView.slint @@ -62,13 +62,9 @@ export component MainView inherits Rectangle { } for day[dayIndex] in AppWindowModels.days: VerticalLayout { spacing: day.tasks.length > 0 ? 16px : 0px; + padding-bottom: 32px; + if day.tasks.length > 0 : Rectangle { - - if dayIndex != 0 : Rectangle { - height: 1px; - background: Palette.card-background; - } - //background: Palette.card-background; border-radius: 8px; VerticalLayout { HorizontalLayout {