Commit ed419a83 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[layout] Improve feeds page layout by handling notification widths.

parent ebe0386f
...@@ -36,7 +36,7 @@ Item { ...@@ -36,7 +36,7 @@ Item {
// Day of week // Day of week
Row { Row {
id: daterow id: daterow
height: 120 height: displayCurrentDate.height + 15
Label { Label {
id: displayDayOfWeek id: displayDayOfWeek
text: Qt.formatDateTime(wallClock.time, "dddd") + ", " text: Qt.formatDateTime(wallClock.time, "dddd") + ", "
...@@ -56,7 +56,7 @@ Item { ...@@ -56,7 +56,7 @@ Item {
id: displayCurrentDate id: displayCurrentDate
text: Qt.formatDate(wallClock.time, "d MMMM yyyy") text: Qt.formatDate(wallClock.time, "d MMMM yyyy")
font.pointSize: 12 font.pointSize: 12
width: rootitem.width - displayDayOfWeek.width width: rootitem.width - displayDayOfWeek.width - 20
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
anchors { anchors {
left: displayDayOfWeek.right left: displayDayOfWeek.right
...@@ -98,12 +98,13 @@ Item { ...@@ -98,12 +98,13 @@ Item {
Label { Label {
id: appSummary id: appSummary
text: modelData.summary text: modelData.summary
width: rootitem.width/2
font.pointSize: 10 font.pointSize: 10
anchors.left: appIcon.right anchors.left: appIcon.right
wrapMode: Text.Wrap wrapMode: Text.Wrap
} }
Label { Label {
width: rootitem.width - appSummary.width width: rootitem.width/2
text: modelData.body text: modelData.body
font.pointSize: 8 font.pointSize: 8
wrapMode: Text.Wrap wrapMode: Text.Wrap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment