Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>2021-07-15 14:06:04 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-07-16 16:04:33 +0300
commitc2602135ab3ee9d93703ef2928fb35821c1f03a4 (patch)
tree628998394fe6ddcfcf840f479cd22c0a2c530bfb /src
parentb72d1af50a7cd5ca84151addbef75b3756308a1e (diff)
fix size of the Label with user status
ensure the label width is not higher than the parent to ensure log string get elided as expected Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/tray/Window.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml
index e818550a2..2ea72959d 100644
--- a/src/gui/tray/Window.qml
+++ b/src/gui/tray/Window.qml
@@ -362,6 +362,9 @@ Window {
spacing: 0
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
Layout.leftMargin: Style.userStatusSpacing
+ Layout.fillWidth: true
+ Layout.maximumWidth: parent.width
+
Label {
id: currentAccountUser
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
@@ -372,11 +375,14 @@ Window {
font.pixelSize: Style.topLinePixelSize
font.bold: true
}
+
RowLayout {
id: currentUserStatus
visible: UserModel.currentUser.isConnected &&
UserModel.currentUser.serverHasUserStatus
spacing: Style.accountLabelsSpacing
+ width: parent.width
+
Label {
id: emoji
visible: UserModel.currentUser.statusEmoji !== ""
@@ -386,6 +392,7 @@ Window {
Label {
id: message
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
+ Layout.fillWidth: true
visible: UserModel.currentUser.statusMessage !== ""
width: Style.currentAccountLabelWidth
text: UserModel.currentUser.statusMessage !== ""