Skip to content

Commit c54c973

Browse files
committed
qml: change peer delegate layout
1 parent 3c2d951 commit c54c973

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/qml/pages/node/Peers.qml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ Page {
232232
width: parent.width
233233
}
234234
}
235-
contentItem: RowLayout {
236-
spacing: 15
237-
ColumnLayout {
235+
contentItem: ColumnLayout {
236+
RowLayout {
238237
Layout.fillWidth: true
238+
spacing: 15
239239
CoreText {
240240
Layout.alignment: Qt.AlignLeft
241241
Layout.fillWidth: true
@@ -247,6 +247,14 @@ Page {
247247
wrapMode: Text.NoWrap
248248
horizontalAlignment: Text.AlignLeft
249249
}
250+
CoreText {
251+
Layout.alignment: Qt.AlignRight
252+
id: secondary
253+
font.pixelSize: 18
254+
color: delegate.stateColor
255+
}
256+
}
257+
RowLayout {
250258
CoreText {
251259
Layout.alignment: Qt.AlignLeft
252260
Layout.fillWidth: true
@@ -258,15 +266,6 @@ Page {
258266
wrapMode: Text.NoWrap
259267
horizontalAlignment: Text.AlignLeft
260268
}
261-
}
262-
ColumnLayout {
263-
Layout.fillWidth: false
264-
CoreText {
265-
Layout.alignment: Qt.AlignRight
266-
id: secondary
267-
font.pixelSize: 18
268-
color: delegate.stateColor
269-
}
270269
CoreText {
271270
Layout.alignment: Qt.AlignRight
272271
id: quaternary

0 commit comments

Comments
 (0)