Skip to content
Snippets Groups Projects
Verified Commit 55107ed0 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix some reply layouting loops

parent b187440e
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ Popup {
eventId: mid
userColor: TimelineManager.userColor(modelData.userId, palette.window)
width: parent.width
maxWidth: parent.width
}
MatrixTextField {
id: roomTextInput
......
......@@ -32,7 +32,7 @@ Rectangle {
eventId: room.reply ?? ""
userColor: TimelineManager.userColor(modelData.userId, palette.window)
visible: room && room.reply
width: parent.width
maxWidth: parent.width - anchors.leftMargin - anchors.rightMargin
}
ImageButton {
id: closeReplyButton
......
......@@ -285,7 +285,7 @@ Pane {
property var e: room ? room.getDump(modelData, "pins") : {}
Layout.fillWidth: true
maxWidth: pinnedMessages.width
//Layout.preferredHeight: height
eventId: e.eventId ?? ""
userColor: TimelineManager.userColor(e.userId, palette.window)
......
......@@ -24,6 +24,7 @@ AbstractButton {
property string userName: eventId ? room.dataById(eventId, Room.UserName, "") : ""
implicitHeight: replyContainer.implicitHeight
implicitWidth: replyContainer.implicitWidth
property int maxWidth
NhekoCursorShape {
anchors.fill: parent
......@@ -48,14 +49,11 @@ AbstractButton {
eventId: r.eventId
replyTo: ""
width: parent.width
height: replyContainer.implicitHeight
//height: replyContainer.implicitHeight
data: GridLayout {
id: replyContainer
width: parent.width
width: r.maxWidth
columns: 2
rows: 2
columnSpacing: Nheko.paddingMedium
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment