mirror of https://github.com/KDE/kasts.git
Fixed text in EntryListPage header and make more mobile friendly
This commit is contained in:
parent
88b308984d
commit
0ee88666e9
|
@ -80,12 +80,12 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
onOriginYChanged: contentY = originY // Why is this needed?
|
onOriginYChanged: contentY = originY // Why is this needed?
|
||||||
|
|
||||||
headerPositioning: ListView.OverlayHeader
|
//headerPositioning: ListView.OverlayHeader // seems broken
|
||||||
header: Item {
|
header: Item {
|
||||||
//anchors.top: parent.top
|
//anchors.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
height: Kirigami.Units.gridUnit * 12
|
height: Kirigami.Units.gridUnit * 8
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -115,8 +115,8 @@ Kirigami.ScrollablePage {
|
||||||
color:"#87000000" //RGBA, but first value is actually the alpha channel
|
color:"#87000000" //RGBA, but first value is actually the alpha channel
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
property int size: Kirigami.Units.gridUnit * 7
|
property int size: Kirigami.Units.gridUnit * 6
|
||||||
property int margin: Kirigami.Units.gridUnit * 2
|
property int margin: Kirigami.Units.gridUnit * 1
|
||||||
height: size
|
height: size
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
@ -138,21 +138,28 @@ Kirigami.ScrollablePage {
|
||||||
Layout.leftMargin: parent.margin/2
|
Layout.leftMargin: parent.margin/2
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
text: page.feed.name
|
text: page.feed.name
|
||||||
|
fontSizeMode: Text.Fit
|
||||||
font.pointSize: 18
|
font.pointSize: 18
|
||||||
|
minimumPointSize: 12
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
|
verticalAlignment: Text.AlignBottom
|
||||||
color: "white"
|
color: "white"
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
elide: Text.ElideRight
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: page.feed.authors.length === 0 ? "" : i18nc("by <author(s)>", "by") + " " + page.feed.authors[0].name
|
text: page.feed.authors.length === 0 ? "" : i18nc("by <author(s)>", "by") + " " + page.feed.authors[0].name
|
||||||
font.pointSize: 14
|
fontSizeMode: Text.Fit
|
||||||
|
font.pointSize: 12
|
||||||
|
minimumPointSize: 10
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
color: "white"
|
color: "white"
|
||||||
|
elide: Text.ElideRight
|
||||||
opacity: 1
|
opacity: 1
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue