From 5f594046a6c47bce7c4bcef9f0a187307747c7c3 Mon Sep 17 00:00:00 2001 From: loki5512344 Date: Sat, 24 Oct 2026 17:09:35 +0200 Subject: [PATCH] fix(client): size connect card to its content so spacing stays tight --- src/ui/slint/connect.slint | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/slint/connect.slint b/src/ui/slint/connect.slint index 3d36d52..6d0f3f4 100644 --- a/src/ui/slint/connect.slint +++ b/src/ui/slint/connect.slint @@ -30,9 +30,10 @@ export component ConnectScreen inherits Rectangle { Rectangle { horizontal-stretch: 1; } Rectangle { width: 540px; + height: card.preferred-height; background: Theme.bg-surface; border-radius: 14px; - VerticalLayout { - padding: 28px; spacing: 15px; + card := VerticalLayout { + padding: 28px; spacing: 15px; alignment: start; Text { text: @tr("Connect to a server"); color: Theme.text-primary; font-size: Math.max(11px, Theme.font-size * 1.5); font-weight: 600; } Text { text: @tr("Enter your server address or choose a saved server."); color: Theme.text-secondary; font-size: Math.max(11px, Theme.font-size * 0.8125); wrap: word-wrap; } Text { text: @tr("Server address"); color: Theme.text-secondary; font-size: Math.max(11px, Theme.font-size * 0.75); }