From 48fc594c2d6a2064e8a296e10679c739cfda12dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 26 Feb 2023 12:03:37 +0800 Subject: Item for banner image container instead of ColumnLayout --- HomeDefault.ui.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml index 1b59441..5e711a6 100644 --- a/HomeDefault.ui.qml +++ b/HomeDefault.ui.qml @@ -34,6 +34,8 @@ Flickable { Layout.leftMargin: 15 Layout.rightMargin: 15 Layout.bottomMargin: 48 + Layout.maximumWidth: body.width < 992 + ? body.width : body.width / 2 FontLoader { id: heebo @@ -113,16 +115,18 @@ Flickable { } } - ColumnLayout { + Item { Layout.topMargin: 48 Layout.leftMargin: 24 Layout.rightMargin: 24 + Layout.fillWidth: true + implicitHeight: image.height Image { id: image source: "https://eduport.webestica.com/assets/images/element/07.png" + width: parent.width fillMode: Image.PreserveAspectFit - Layout.fillWidth: true } } } -- cgit v1.2.3