|
|
@ -271,6 +271,7 @@ Pane { |
|
|
|
ScrollBar.horizontal.visible: false |
|
|
|
ScrollBar.horizontal.visible: false |
|
|
|
clip: true |
|
|
|
clip: true |
|
|
|
visible: !!room && room.pinnedMessages.length > 0 && !Settings.hiddenPins.includes(roomId) |
|
|
|
visible: !!room && room.pinnedMessages.length > 0 && !Settings.hiddenPins.includes(roomId) |
|
|
|
|
|
|
|
contentWidth: availableWidth |
|
|
|
|
|
|
|
|
|
|
|
ListView { |
|
|
|
ListView { |
|
|
|
model: room ? room.pinnedMessages : undefined |
|
|
|
model: room ? room.pinnedMessages : undefined |
|
|
@ -287,8 +288,7 @@ Pane { |
|
|
|
|
|
|
|
|
|
|
|
property var e: room ? room.getDump(modelData, "pins") : {} |
|
|
|
property var e: room ? room.getDump(modelData, "pins") : {} |
|
|
|
|
|
|
|
|
|
|
|
maxWidth: pinnedMessages.width |
|
|
|
maxWidth: pinnedMessages.width - 16 |
|
|
|
//Layout.preferredHeight: height |
|
|
|
|
|
|
|
eventId: e.eventId ?? "" |
|
|
|
eventId: e.eventId ?? "" |
|
|
|
userColor: TimelineManager.userColor(e.userId, palette.window) |
|
|
|
userColor: TimelineManager.userColor(e.userId, palette.window) |
|
|
|
|
|
|
|
|
|
|
@ -328,12 +328,14 @@ Pane { |
|
|
|
ScrollBar.horizontal.visible: false |
|
|
|
ScrollBar.horizontal.visible: false |
|
|
|
clip: true |
|
|
|
clip: true |
|
|
|
visible: !!room && room.widgetLinks.length > 0 && !Settings.hiddenWidgets.includes(roomId) |
|
|
|
visible: !!room && room.widgetLinks.length > 0 && !Settings.hiddenWidgets.includes(roomId) |
|
|
|
|
|
|
|
contentWidth: availableWidth |
|
|
|
|
|
|
|
|
|
|
|
ListView { |
|
|
|
ListView { |
|
|
|
model: room ? room.widgetLinks : undefined |
|
|
|
model: room ? room.widgetLinks : undefined |
|
|
|
spacing: Nheko.paddingSmall |
|
|
|
spacing: Nheko.paddingSmall |
|
|
|
|
|
|
|
|
|
|
|
delegate: MatrixText { |
|
|
|
delegate: MatrixText { |
|
|
|
|
|
|
|
width: widgets.width |
|
|
|
required property var modelData |
|
|
|
required property var modelData |
|
|
|
|
|
|
|
|
|
|
|
color: palette.text |
|
|
|
color: palette.text |
|
|
|