mobile: Adjust About.qml to fit small screens.

Adjust size of image and text to ensure that
the clipboard buttom is (nearly) always visible

The buttom is not directly visible in landscape
mode on a small device.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-27 13:43:23 +02:00 committed by Dirk Hohndel
parent 2d1e5d7a99
commit f265504dab

View file

@ -21,16 +21,16 @@ Kirigami.ScrollablePage {
Layout.topMargin: Kirigami.Units.gridUnit
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: pageWidth
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
wrapMode: TextEdit.NoWrap
fontSizeMode: Text.Fit
}
Image {
id: image
source: "qrc:/qml/subsurface-mobile-icon.png"
width: pageWidth / 2
height: width
fillMode: Image.Stretch
Layout.alignment: Qt.AlignCenter
horizontalAlignment: Image.AlignHCenter
fillMode: Image.PreserveAspectCrop
Layout.alignment: Qt.AlignHCenter + Qt.AlignVCenter
Layout.maximumWidth: pageWidth / 2
Layout.maximumHeight: Layout.maximumWidth
}
Kirigami.Heading {