summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorLasath Fernando <devel@lasath.org>2020-04-28 00:38:13 -0700
committerLasath Fernando <devel@lasath.org>2020-04-28 00:38:13 -0700
commit84c5ff0bcbeb5e9c14a97997f8bf8e153f6f5f89 (patch)
tree7b292472fd49cf99b6441783093d9b7000e7f375 /resources/qml
parentShamelessly steal `ScrollHelper.qml` from spectral (diff)
downloadnheko-84c5ff0bcbeb5e9c14a97997f8bf8e153f6f5f89.tar.xz
Fix binding loops for height
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TimelineView.qml11
-rw-r--r--resources/qml/delegates/Pill.qml6
2 files changed, 12 insertions, 5 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index ce8ad62c..45d9c3f2 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -208,9 +208,14 @@ Page { text: chat.model.formatDateSeparator(modelData.timestamp) color: colors.brightText - height: contentHeight * 1.2 - width: contentWidth * 1.2 - horizontalAlignment: Text.AlignHCenter +// height: contentHeight * 1.2 +// width: contentWidth * 1.2 + leftPadding: 24 + rightPadding: 24 + topPadding: 8 + bottomPadding: 8 + + horizontalAlignment: Text.AlignHCenter background: Rectangle { radius: parent.height / 2 color: colors.dark diff --git a/resources/qml/delegates/Pill.qml b/resources/qml/delegates/Pill.qml
index 27985b58..65a4aedf 100644 --- a/resources/qml/delegates/Pill.qml +++ b/resources/qml/delegates/Pill.qml
@@ -5,8 +5,10 @@ Label { color: colors.brightText horizontalAlignment: Text.AlignHCenter - height: contentHeight * 1.2 - width: contentWidth * 1.2 +// height: contentHeight * 1.2 +// width: contentWidth * 1.2 + padding: 12 + background: Rectangle { radius: parent.height / 2 color: colors.dark