From 0ee88666e95fce18961aedf97945a936a407aa83 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Thu, 8 Apr 2021 12:01:06 +0200 Subject: [PATCH] Fixed text in EntryListPage header and make more mobile friendly --- src/qml/EntryListPage.qml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/qml/EntryListPage.qml b/src/qml/EntryListPage.qml index 1c84125c..546fa482 100644 --- a/src/qml/EntryListPage.qml +++ b/src/qml/EntryListPage.qml @@ -80,12 +80,12 @@ Kirigami.ScrollablePage { onOriginYChanged: contentY = originY // Why is this needed? - headerPositioning: ListView.OverlayHeader + //headerPositioning: ListView.OverlayHeader // seems broken header: Item { //anchors.top: parent.top anchors.right: parent.right anchors.left: parent.left - height: Kirigami.Units.gridUnit * 12 + height: Kirigami.Units.gridUnit * 8 MouseArea { anchors.fill: parent onClicked: { @@ -115,8 +115,8 @@ Kirigami.ScrollablePage { color:"#87000000" //RGBA, but first value is actually the alpha channel } RowLayout { - property int size: Kirigami.Units.gridUnit * 7 - property int margin: Kirigami.Units.gridUnit * 2 + property int size: Kirigami.Units.gridUnit * 6 + property int margin: Kirigami.Units.gridUnit * 1 height: size anchors.bottom: parent.bottom anchors.left: parent.left @@ -138,21 +138,28 @@ Kirigami.ScrollablePage { Layout.leftMargin: parent.margin/2 Controls.Label { Layout.fillWidth: true + Layout.fillHeight: true text: page.feed.name + fontSizeMode: Text.Fit font.pointSize: 18 + minimumPointSize: 12 horizontalAlignment: Text.AlignLeft + verticalAlignment: Text.AlignBottom color: "white" opacity: 1 + elide: Text.ElideRight wrapMode: Text.WordWrap } Controls.Label { Layout.fillWidth: true text: page.feed.authors.length === 0 ? "" : i18nc("by ", "by") + " " + page.feed.authors[0].name - font.pointSize: 14 + fontSizeMode: Text.Fit + font.pointSize: 12 + minimumPointSize: 10 horizontalAlignment: Text.AlignLeft color: "white" + elide: Text.ElideRight opacity: 1 - wrapMode: Text.WordWrap } } }