diff --git a/crates/tsc-ui/ui/app.slint b/crates/tsc-ui/ui/app.slint index e25548e..4fd44a4 100644 --- a/crates/tsc-ui/ui/app.slint +++ b/crates/tsc-ui/ui/app.slint @@ -385,8 +385,11 @@ export component MainWindow inherits Window { property editing: false; property show-about: false; property form; - // Phones and narrow windows show one pane at a time. - property narrow: self.width < 800px; + // Phones and narrow windows show one pane at a time. Set from a change + // handler: a binding on `width` would loop through the layout. + property narrow: false; + changed width => { narrow = self.width < 800px; } + init => { narrow = self.width < 800px; } property pane: 1; VerticalLayout { @@ -463,7 +466,10 @@ export component MainWindow inherits Window { } HorizontalLayout { if !narrow || pane == 2: ServerList { - width: narrow ? parent.width : 230px; + // Fixed width beside the other panes, all the space alone. + min-width: narrow ? 0px : 230px; + max-width: narrow ? 100000px : 230px; + horizontal-stretch: narrow ? 1 : 0; add => { form = Bridge.edit-bookmark(-1); editing = true; @@ -474,7 +480,9 @@ export component MainWindow inherits Window { } } if !narrow || pane == 0: ChannelTree { - width: narrow ? parent.width : 360px; + min-width: narrow ? 0px : 360px; + max-width: narrow ? 100000px : 360px; + horizontal-stretch: narrow ? 1 : 0; } if !narrow || pane == 1: ChatPanel { } } diff --git a/deny.toml b/deny.toml index 116a9f1..398bc8b 100644 --- a/deny.toml +++ b/deny.toml @@ -29,6 +29,11 @@ allow = [ "CDLA-Permissive-2.0", "MPL-2.0", "BSL-1.0", + "Unlicense", + # Slint is triple licensed (GPL-3.0-only OR royalty-free OR commercial); we + # use the royalty-free license, which requires the attribution shown in the + # app's About page and the README. + "LicenseRef-Slint-Royalty-free-2.0", ] confidence-threshold = 0.9