fix sip login page content layout

This commit is contained in:
Gaelle Braud 2023-11-15 14:11:12 +01:00
parent 22724d8cd2
commit 62a9d34e09

View file

@ -57,29 +57,22 @@ LoginLayout {
centerContent: ColumnLayout {
signal useSIPButtonClicked()
RowLayout {
ColumnLayout {
Layout.preferredWidth: 330
Layout.maximumWidth: 340
Control.StackView {
id: rootStackView
initialItem: firstItem
Layout.preferredWidth: parent.width
Layout.preferredHeight: parent.height
Layout.preferredWidth: 280
Layout.fillHeight: true
Layout.alignment: Qt.AlignTop
}
Component {
id: firstItem
ColumnLayout {
Layout.alignment: Qt.AlignTop
Layout.fillHeight: true
Layout.maximumWidth: rootStackView.width
clip: true
ColumnLayout {
Layout.bottomMargin: 60
Text {
Layout.fillWidth: true
Layout.preferredWidth: rootStackView.width
width: rootStackView.width
wrapMode: Text.WordWrap
color: DefaultStyle.darkGrayColor
font.pointSize: DefaultStyle.defaultTextSize
@ -91,12 +84,15 @@ LoginLayout {
text: "linphone.org/contact"
textSize: 8
inversedColors: true
leftPadding: 8
rightPadding: 8
topPadding: 5
bottomPadding: 5
onClicked: {
Qt.openUrlExternally(ConstantsCpp.ContactUrl)
}
}
}
ColumnLayout {
spacing: 10
Layout.bottomMargin: 20
@ -117,6 +113,9 @@ LoginLayout {
}
}
}
Item {
Layout.fillHeight: true
}
}
}
Component {
@ -210,8 +209,7 @@ LoginLayout {
Layout.fillHeight: true
}
}
}
}
}
Item {
Layout.fillWidth: true
@ -229,4 +227,3 @@ LoginLayout {
}
}
}