summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-02-02 16:29:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-02-02 16:29:08 +0100
commit961cb403f7b25d2b1c55158f3e9cc444a76d740c (patch)
treeaa6b03592d9e59872996a5ed817c3cbec78de6b9 /resources
parentFix report message dialog (diff)
downloadnheko-961cb403f7b25d2b1c55158f3e9cc444a76d740c.tar.xz
Fix some top bar sizing issues
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TopBar.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml
index 6d1cc445..20af8ada 100644
--- a/resources/qml/TopBar.qml
+++ b/resources/qml/TopBar.qml
@@ -271,6 +271,7 @@ Pane {
                 ScrollBar.horizontal.visible: false
                 clip: true
                 visible: !!room && room.pinnedMessages.length > 0 && !Settings.hiddenPins.includes(roomId)
+                contentWidth: availableWidth
 
                 ListView {
                     model: room ? room.pinnedMessages : undefined
@@ -287,8 +288,7 @@ Pane {
 
                             property var e: room ? room.getDump(modelData, "pins") : {}
 
-                            maxWidth: pinnedMessages.width
-                            //Layout.preferredHeight: height
+                            maxWidth: pinnedMessages.width - 16
                             eventId: e.eventId ?? ""
                             userColor: TimelineManager.userColor(e.userId, palette.window)
 
@@ -328,12 +328,14 @@ Pane {
                 ScrollBar.horizontal.visible: false
                 clip: true
                 visible: !!room && room.widgetLinks.length > 0 && !Settings.hiddenWidgets.includes(roomId)
+                contentWidth: availableWidth
 
                 ListView {
                     model: room ? room.widgetLinks : undefined
                     spacing: Nheko.paddingSmall
 
                     delegate: MatrixText {
+                        width: widgets.width
                         required property var modelData
 
                         color: palette.text