summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-27 13:43:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-27 08:07:52 -0700
commitf265504dabf4a7cafa0282e034919007d663f4f0 (patch)
treec5146bfb547dc3544c4531928ee97a9cd15589f3 /mobile-widgets
parent2d1e5d7a992841bf2b76f5f85d2ab8419e22697f (diff)
downloadsubsurface-f265504dabf4a7cafa0282e034919007d663f4f0.tar.gz
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/About.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/mobile-widgets/qml/About.qml b/mobile-widgets/qml/About.qml
index 4c3fe6924..2d4f8e6df 100644
--- a/mobile-widgets/qml/About.qml
+++ b/mobile-widgets/qml/About.qml
@@ -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 {