Improve look of reactions

This commit is contained in:
Carl Schwan
2020-11-22 18:32:59 +01:00
parent 4dedb87efa
commit 5316e32004
2 changed files with 4 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ RowLayout {
spacing: Kirigami.Units.smallSpacing spacing: Kirigami.Units.smallSpacing
Layout.leftMargin: Kirigami.Units.largeSpacing Layout.leftMargin: Kirigami.Units.largeSpacing
Layout.rightMargin: Kirigami.Units.smallSpacing Layout.rightMargin: Kirigami.Units.smallSpacing
Layout.bottomMargin: 0
Layout.topMargin: showAuthor ? Kirigami.Units.smallSpacing : 0 Layout.topMargin: showAuthor ? Kirigami.Units.smallSpacing : 0
Kirigami.Avatar { Kirigami.Avatar {
@@ -75,6 +76,7 @@ RowLayout {
id: controlContainer id: controlContainer
Layout.fillWidth: true Layout.fillWidth: true
topPadding: 0 topPadding: 0
bottomPadding: 0
contentItem: ColumnLayout { contentItem: ColumnLayout {
id: column id: column
spacing: Kirigami.Units.smallSpacing spacing: Kirigami.Units.smallSpacing

View File

@@ -12,7 +12,7 @@ import org.kde.kirigami 2.13 as Kirigami
Flow { Flow {
visible: (reaction && reaction.length > 0) ?? false visible: (reaction && reaction.length > 0) ?? false
spacing: 8 spacing: Kirigami.Units.largeSpacing
Repeater { Repeater {
model: reaction model: reaction
@@ -27,13 +27,12 @@ Flow {
contentItem: Label { contentItem: Label {
height: Kirigami.Units.largeSpacing * 3 height: Kirigami.Units.largeSpacing * 3
text: modelData.reaction + (modelData.count > 1 ? " " + modelData.count : "") text: modelData.reaction + (modelData.count > 1 ? " " + modelData.count : "")
font.family: "emoji"
elide: Text.ElideRight elide: Text.ElideRight
} }
background: Rectangle { background: Rectangle {
radius: height / 2 radius: height / 2
Kirigami.Theme.colorSet: Kirigami.Theme.View Kirigami.Theme.colorSet: Kirigami.Theme.Window
color: Kirigami.Theme.backgroundColor color: Kirigami.Theme.backgroundColor
MouseArea { MouseArea {
@@ -43,7 +42,6 @@ Flow {
ToolTip { ToolTip {
visible: parent.containsMouse visible: parent.containsMouse
font.family: Kirigami.Theme.defaultFont.family + ", emoji"
text: { text: {
var text = ""; var text = "";