mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 11:28:49 +03:00
WelcomePage: add vertical ScrollView around content
This solves the problem of the window being sized smaller than it's content and part of it being out of view.
This commit is contained in:
parent
e7d28b96da
commit
16cce08b43
1 changed files with 81 additions and 76 deletions
|
@ -10,7 +10,11 @@ import im.nheko 1.0
|
|||
import "../components/"
|
||||
import ".."
|
||||
|
||||
ColumnLayout {
|
||||
ScrollView {
|
||||
contentWidth: availableWidth
|
||||
ColumnLayout {
|
||||
width: parent.width
|
||||
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
@ -29,7 +33,7 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
text: qsTr("Welcome to nheko! The desktop client for the Matrix protocol.")
|
||||
color: palette.text
|
||||
font.pointSize: fontMetrics.font.pointSize*2
|
||||
font.pointSize: fontMetrics.font.pointSize * 2
|
||||
wrapMode: Text.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
@ -39,7 +43,7 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
text: qsTr("Enjoy your stay!")
|
||||
color: palette.text
|
||||
font.pointSize: fontMetrics.font.pointSize*1.5
|
||||
font.pointSize: fontMetrics.font.pointSize * 1.5
|
||||
wrapMode: Text.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
@ -99,4 +103,5 @@ ColumnLayout {
|
|||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue