summaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/tapasboard/TopicPage.qml47
1 files changed, 29 insertions, 18 deletions
diff --git a/qml/tapasboard/TopicPage.qml b/qml/tapasboard/TopicPage.qml
index d39d36e..9a305f8 100644
--- a/qml/tapasboard/TopicPage.qml
+++ b/qml/tapasboard/TopicPage.qml
@@ -31,27 +31,38 @@ Page {
delegate: Item {
id: postItem
- height: Math.max(postItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault)
+ height: postItemRectangle.height + UiConstants.ButtonSpacing * 2
width: parent.width
- Column {
- id: postItemColumn
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
-
- Text {
- text: model.title
- width: parent.width
- font: UiConstants.TitleFont
- visible: text != ""
- }
+ Rectangle {
+ id: postItemRectangle
+ width: parent.width
+ height: postItemColumn.height + UiConstants.DefaultMargin
+ anchors.centerIn: parent
+
+ color: "white"
+ radius: 20
+
+ Column {
+ id: postItemColumn
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.margins: UiConstants.DefaultMargin
+ anchors.verticalCenter: parent.verticalCenter
+
+ Text {
+ text: model.title
+ width: parent.width
+ font: UiConstants.TitleFont
+ visible: text != ""
+ }
- Text {
- text: model.content
- width: parent.width
- font: UiConstants.SubtitleFont
- wrapMode: Text.Wrap
+ Text {
+ text: model.content
+ width: parent.width
+ font: UiConstants.SubtitleFont
+ wrapMode: Text.Wrap
+ }
}
}
}