Fix tasks and sidebar padding

This commit is contained in:
Vyn 2025-06-18 18:31:05 +02:00
parent f8ff4eb3c4
commit 84760b603d
Signed by: vyn
GPG key ID: E1B2BE34E7A971E7
3 changed files with 12 additions and 9 deletions

View file

@ -34,7 +34,9 @@ export component AppWindow inherits Window {
clicked => { show-tasks = true }
}
}
SideBar {}
SideBar {
min-width: 256px;
}
}
VerticalLayout {

View file

@ -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;

View file

@ -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 {