mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 01:13:19 +00:00
Fix tasks and sidebar padding
This commit is contained in:
parent
f8ff4eb3c4
commit
84760b603d
3 changed files with 12 additions and 9 deletions
|
@ -34,7 +34,9 @@ export component AppWindow inherits Window {
|
||||||
clicked => { show-tasks = true }
|
clicked => { show-tasks = true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SideBar {}
|
SideBar {
|
||||||
|
min-width: 256px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,19 @@ export component SideBar inherits Rectangle {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
spacing: 16px;
|
spacing: 16px;
|
||||||
HorizontalLayout {
|
HorizontalLayout {
|
||||||
alignment: space-between;
|
alignment: stretch;
|
||||||
spacing: 64px;
|
|
||||||
VText {
|
VText {
|
||||||
text: "Sources";
|
text: "Sources";
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
horizontal-stretch: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
horizontal-stretch: 1;
|
||||||
|
}
|
||||||
|
|
||||||
VActionButton {
|
VActionButton {
|
||||||
|
horizontal-stretch: 0;
|
||||||
icon-svg: Svg.plus;
|
icon-svg: Svg.plus;
|
||||||
icon-colorize: Palette.green;
|
icon-colorize: Palette.green;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
|
@ -62,13 +62,9 @@ export component MainView inherits Rectangle {
|
||||||
}
|
}
|
||||||
for day[dayIndex] in AppWindowModels.days: VerticalLayout {
|
for day[dayIndex] in AppWindowModels.days: VerticalLayout {
|
||||||
spacing: day.tasks.length > 0 ? 16px : 0px;
|
spacing: day.tasks.length > 0 ? 16px : 0px;
|
||||||
|
padding-bottom: 32px;
|
||||||
|
|
||||||
if day.tasks.length > 0 : Rectangle {
|
if day.tasks.length > 0 : Rectangle {
|
||||||
|
|
||||||
if dayIndex != 0 : Rectangle {
|
|
||||||
height: 1px;
|
|
||||||
background: Palette.card-background;
|
|
||||||
}
|
|
||||||
//background: Palette.card-background;
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
HorizontalLayout {
|
HorizontalLayout {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue