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 }
|
||||
}
|
||||
}
|
||||
SideBar {}
|
||||
SideBar {
|
||||
min-width: 256px;
|
||||
}
|
||||
}
|
||||
VerticalLayout {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue