fix(client): size connect card to its content so spacing stays tight
This commit is contained in:
parent
3d7dd5413b
commit
5f594046a6
1 changed files with 3 additions and 2 deletions
|
|
@ -30,9 +30,10 @@ export component ConnectScreen inherits Rectangle {
|
||||||
Rectangle { horizontal-stretch: 1; }
|
Rectangle { horizontal-stretch: 1; }
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 540px;
|
width: 540px;
|
||||||
|
height: card.preferred-height;
|
||||||
background: Theme.bg-surface; border-radius: 14px;
|
background: Theme.bg-surface; border-radius: 14px;
|
||||||
VerticalLayout {
|
card := VerticalLayout {
|
||||||
padding: 28px; spacing: 15px;
|
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("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("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); }
|
Text { text: @tr("Server address"); color: Theme.text-secondary; font-size: Math.max(11px, Theme.font-size * 0.75); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue