From 836f715cfde518c8572f9f131c0919659d9cb683 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 1 Jul 2018 18:09:13 +0200 Subject: Fixed recipient width --- views/composer/qml/AddresseeListEditor.qml | 37 +++++++++++++----------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/views/composer/qml/AddresseeListEditor.qml b/views/composer/qml/AddresseeListEditor.qml index 9267ebee..887c53f6 100644 --- a/views/composer/qml/AddresseeListEditor.qml +++ b/views/composer/qml/AddresseeListEditor.qml @@ -50,32 +50,27 @@ FocusScope { height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 //smallSpacing for padding width: parent.width color: Kube.Colors.buttonColor - Row { + Kube.Label { + id: label anchors { - top: parent.top - bottom: parent.bottom + verticalCenter: parent.verticalCenter left: parent.left - right: removeButton.left + right: keyIcon.left margins: Kube.Units.smallSpacing } - spacing: Kube.Units.smallSpacing - Kube.Label { - id: label - anchors { - top: parent.top - } - text: model.name - elide: Text.ElideRight - } - Kube.Icon { - anchors { - top: parent.top - } - height: Kube.Units.gridUnit - width: height - visible: root.encrypt - iconName: model.keyFound ? Kube.Icons.secure: Kube.Icons.insecure + text: model.name + elide: Text.ElideRight + } + Kube.Icon { + id: keyIcon + anchors { + verticalCenter: parent.verticalCenter + right: removeButton.left } + height: Kube.Units.gridUnit + width: visible ? height : 0 + visible: root.encrypt + iconName: model.keyFound ? Kube.Icons.secure: Kube.Icons.insecure } Kube.IconButton { id: removeButton -- cgit v1.2.3