fix(client): size connect card to its content so spacing stays tight

This commit is contained in:
Loki 2026-10-24 17:09:35 +02:00
parent 3d7dd5413b
commit 5f594046a6
Signed by: boba
GPG key ID: 253067914055423B

View file

@ -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); }