Skip to content

Commit

Permalink
Remove extra RowLayout.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila <hello@camila.codes>
  • Loading branch information
Camila authored and mgallien committed Jun 16, 2021
1 parent 449fda1 commit 7ddc4ca
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/gui/tray/UserLine.qml
Original file line number Diff line number Diff line change
Expand Up @@ -102,42 +102,39 @@ MenuItem {
Layout.leftMargin: Style.accountLabelsSpacing
Label {
id: accountUser
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
width: 128
text: name
elide: Text.ElideRight
color: "black"
font.pixelSize: Style.topLinePixelSize
font.bold: true
}
RowLayout {
id: userStatus
Row {
visible: model.isConnected &&
model.serverHasUserStatus
spacing: Style.userStatusAnchorsMargin
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
width: Style.currentAccountLabelWidth + Style.userStatusEmojiSize
Label {
id: emoji
height: Style.topLinePixelSize
visible: model.statusEmoji !== ""
width: Style.userStatusEmojiSize
text: statusEmoji
topPadding: -Style.accountLabelsSpacing
}
Label {
id: message
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
Layout.leftMargin: Style.userStatusAnchorsMargin
height: Style.topLinePixelSize
visible: model.statusMessage !== ""
width: Style.currentAccountLabelWidth
text: statusMessage
elide: Text.ElideRight
color: "black"
font.pixelSize: Style.subLinePixelSize
leftPadding: Style.accountLabelsSpacing
}
}
Label {
id: accountServer
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
width: Style.currentAccountLabelWidth
height: Style.topLinePixelSize
text: server
elide: Text.ElideRight
color: "black"
Expand Down

0 comments on commit 7ddc4ca

Please sign in to comment.