summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-16 21:30:58 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-16 21:30:58 +0100
commit999ac95658f2ca216f7e9da76c4ae5891ec6a7cf (patch)
treee02d6fac79cb1aa89333897a86a078e008882cf2
parent2ffd476e8f4aae1fc5342942187cd0afb79a5cd1 (diff)
Fix a small alignment issue of text in notification bubbles
-rw-r--r--resources/qml/RoomList.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index d40ff2b3..3bb9da86 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -236,7 +236,7 @@ Page {
enabled: false
Layout.alignment: Qt.AlignRight
height: fontMetrics.averageCharacterWidth * 3
- width: Math.min(Math.max(collapsedBubbleText.width + Nheko.paddingMedium, height), parent.width)
+ width: Math.max(collapsedBubbleText.width, height)
radius: height / 2
color: hasLoudNotification ? Nheko.theme.red : roomItem.bubbleBackground
@@ -246,7 +246,7 @@ Page {
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
- fontSizeMode: Text.Fit
+ width: Math.max(implicitWidth + Nheko.paddingMedium, parent.height)
font.bold: true
font.pixelSize: fontMetrics.font.pixelSize * 0.8
color: hasLoudNotification ? "white" : roomItem.bubbleText
@@ -321,7 +321,7 @@ Page {
visible: notificationCount > 0
Layout.alignment: Qt.AlignRight
height: notificationBubbleText.height + Nheko.paddingMedium
- Layout.preferredWidth: Math.max(notificationBubbleText.width + Nheko.paddingMedium, height)
+ Layout.preferredWidth: Math.max(notificationBubbleText.width, height)
radius: height / 2
color: hasLoudNotification ? Nheko.theme.red : roomItem.bubbleBackground
ToolTip.text: notificationCount
@@ -333,7 +333,7 @@ Page {
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
- fontSizeMode: Text.Fit
+ width: Math.max(implicitWidth + Nheko.paddingMedium, parent.height)
font.bold: true
font.pixelSize: fontMetrics.font.pixelSize * 0.8
color: hasLoudNotification ? "white" : roomItem.bubbleText