From f265504dabf4a7cafa0282e034919007d663f4f0 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 27 May 2018 13:43:23 +0200 Subject: 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 --- mobile-widgets/qml/About.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mobile-widgets/qml/About.qml') 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 { -- cgit v1.2.3-70-g09d2