Remove GridLayout ReplyComponent

Stop using GridLayout in ReplyComponent as they are notoriously terribleRemove
This commit is contained in:
James Graham
2023-11-02 17:04:18 +00:00
committed by Tobias Fella
parent 7e3db20229
commit 95cf23eb5b

View File

@@ -78,15 +78,10 @@ Item {
implicitWidth: mainLayout.implicitWidth implicitWidth: mainLayout.implicitWidth
implicitHeight: mainLayout.implicitHeight implicitHeight: mainLayout.implicitHeight
GridLayout { RowLayout {
id: mainLayout id: mainLayout
anchors.fill: parent anchors.fill: parent
implicitHeight: Math.max(replyAvatar.implicitHeight, replyName.implicitHeight) + loader.height spacing: Kirigami.Units.largeSpacing
rows: 2
columns: 3
rowSpacing: Kirigami.Units.smallSpacing
columnSpacing: Kirigami.Units.largeSpacing
Rectangle { Rectangle {
id: verticalBorder id: verticalBorder
@@ -97,6 +92,12 @@ Item {
implicitWidth: Kirigami.Units.smallSpacing implicitWidth: Kirigami.Units.smallSpacing
color: root.author.color color: root.author.color
} }
ColumnLayout {
spacing: Kirigami.Units.smallSpacing
RowLayout {
spacing: Kirigami.Units.largeSpacing
KirigamiComponents.Avatar { KirigamiComponents.Avatar {
id: replyAvatar id: replyAvatar
@@ -115,6 +116,7 @@ Item {
text: root.author.displayName text: root.author.displayName
elide: Text.ElideRight elide: Text.ElideRight
} }
}
Loader { Loader {
id: loader id: loader
@@ -141,6 +143,7 @@ Item {
} }
} }
} }
}
HoverHandler { HoverHandler {
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
} }