Fix tasks view resizing for no reason + Wrap text correctly

This commit is contained in:
Vyn 2025-06-18 13:54:33 +02:00
parent e4b03ca418
commit f8ff4eb3c4
Signed by: vyn
GPG key ID: E1B2BE34E7A971E7
5 changed files with 141 additions and 176 deletions

View file

@ -12,15 +12,15 @@ import { VButton } from "../../../external/selenite/components/Button.slint";
export component AppWindow inherits Window {
title: "Mirai";
min-height: 100px;
max-height: 4000px; // needed, otherwise the window wants to fit the content (on Swaywm)
//min-height: 100px;
//max-height: 4000px; // needed, otherwise the window wants to fit the content (on Swaywm)
background: Palette.pane;
private property<bool> show-tasks: false;
HorizontalLayout {
VerticalLayout {
HorizontalLayout {
VerticalLayout {
padding: 16px;
alignment: LayoutAlignment.stretch;
spacing: 8px;
@ -37,6 +37,7 @@ export component AppWindow inherits Window {
SideBar {}
}
VerticalLayout {
if show-tasks : MainView {
horizontal-stretch: 1;