mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix some reply layouting loops
This commit is contained in:
parent
b187440e68
commit
55107ed0ce
4 changed files with 5 additions and 7 deletions
|
@ -56,7 +56,7 @@ Popup {
|
||||||
|
|
||||||
eventId: mid
|
eventId: mid
|
||||||
userColor: TimelineManager.userColor(modelData.userId, palette.window)
|
userColor: TimelineManager.userColor(modelData.userId, palette.window)
|
||||||
width: parent.width
|
maxWidth: parent.width
|
||||||
}
|
}
|
||||||
MatrixTextField {
|
MatrixTextField {
|
||||||
id: roomTextInput
|
id: roomTextInput
|
||||||
|
|
|
@ -32,7 +32,7 @@ Rectangle {
|
||||||
eventId: room.reply ?? ""
|
eventId: room.reply ?? ""
|
||||||
userColor: TimelineManager.userColor(modelData.userId, palette.window)
|
userColor: TimelineManager.userColor(modelData.userId, palette.window)
|
||||||
visible: room && room.reply
|
visible: room && room.reply
|
||||||
width: parent.width
|
maxWidth: parent.width - anchors.leftMargin - anchors.rightMargin
|
||||||
}
|
}
|
||||||
ImageButton {
|
ImageButton {
|
||||||
id: closeReplyButton
|
id: closeReplyButton
|
||||||
|
|
|
@ -285,7 +285,7 @@ Pane {
|
||||||
|
|
||||||
property var e: room ? room.getDump(modelData, "pins") : {}
|
property var e: room ? room.getDump(modelData, "pins") : {}
|
||||||
|
|
||||||
Layout.fillWidth: true
|
maxWidth: pinnedMessages.width
|
||||||
//Layout.preferredHeight: height
|
//Layout.preferredHeight: height
|
||||||
eventId: e.eventId ?? ""
|
eventId: e.eventId ?? ""
|
||||||
userColor: TimelineManager.userColor(e.userId, palette.window)
|
userColor: TimelineManager.userColor(e.userId, palette.window)
|
||||||
|
|
|
@ -24,6 +24,7 @@ AbstractButton {
|
||||||
property string userName: eventId ? room.dataById(eventId, Room.UserName, "") : ""
|
property string userName: eventId ? room.dataById(eventId, Room.UserName, "") : ""
|
||||||
implicitHeight: replyContainer.implicitHeight
|
implicitHeight: replyContainer.implicitHeight
|
||||||
implicitWidth: replyContainer.implicitWidth
|
implicitWidth: replyContainer.implicitWidth
|
||||||
|
property int maxWidth
|
||||||
|
|
||||||
NhekoCursorShape {
|
NhekoCursorShape {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -48,14 +49,11 @@ AbstractButton {
|
||||||
eventId: r.eventId
|
eventId: r.eventId
|
||||||
replyTo: ""
|
replyTo: ""
|
||||||
|
|
||||||
width: parent.width
|
|
||||||
height: replyContainer.implicitHeight
|
|
||||||
|
|
||||||
//height: replyContainer.implicitHeight
|
//height: replyContainer.implicitHeight
|
||||||
data: GridLayout {
|
data: GridLayout {
|
||||||
id: replyContainer
|
id: replyContainer
|
||||||
|
|
||||||
width: parent.width
|
width: r.maxWidth
|
||||||
columns: 2
|
columns: 2
|
||||||
rows: 2
|
rows: 2
|
||||||
columnSpacing: Nheko.paddingMedium
|
columnSpacing: Nheko.paddingMedium
|
||||||
|
|
Loading…
Reference in a new issue