diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-01 18:09:13 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-01 18:13:08 +0200 |
commit | 836f715cfde518c8572f9f131c0919659d9cb683 (patch) | |
tree | fa18891bf4a0c90eed83dc752049cf00460c5339 | |
parent | 8bbf98eb13eeb60e98bc5ff9e116eb35b0e2c081 (diff) | |
download | kube-836f715cfde518c8572f9f131c0919659d9cb683.tar.gz kube-836f715cfde518c8572f9f131c0919659d9cb683.zip |
Fixed recipient width
-rw-r--r-- | views/composer/qml/AddresseeListEditor.qml | 37 |
1 files 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 { | |||
50 | height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 //smallSpacing for padding | 50 | height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 //smallSpacing for padding |
51 | width: parent.width | 51 | width: parent.width |
52 | color: Kube.Colors.buttonColor | 52 | color: Kube.Colors.buttonColor |
53 | Row { | 53 | Kube.Label { |
54 | id: label | ||
54 | anchors { | 55 | anchors { |
55 | top: parent.top | 56 | verticalCenter: parent.verticalCenter |
56 | bottom: parent.bottom | ||
57 | left: parent.left | 57 | left: parent.left |
58 | right: removeButton.left | 58 | right: keyIcon.left |
59 | margins: Kube.Units.smallSpacing | 59 | margins: Kube.Units.smallSpacing |
60 | } | 60 | } |
61 | spacing: Kube.Units.smallSpacing | 61 | text: model.name |
62 | Kube.Label { | 62 | elide: Text.ElideRight |
63 | id: label | 63 | } |
64 | anchors { | 64 | Kube.Icon { |
65 | top: parent.top | 65 | id: keyIcon |
66 | } | 66 | anchors { |
67 | text: model.name | 67 | verticalCenter: parent.verticalCenter |
68 | elide: Text.ElideRight | 68 | right: removeButton.left |
69 | } | ||
70 | Kube.Icon { | ||
71 | anchors { | ||
72 | top: parent.top | ||
73 | } | ||
74 | height: Kube.Units.gridUnit | ||
75 | width: height | ||
76 | visible: root.encrypt | ||
77 | iconName: model.keyFound ? Kube.Icons.secure: Kube.Icons.insecure | ||
78 | } | 69 | } |
70 | height: Kube.Units.gridUnit | ||
71 | width: visible ? height : 0 | ||
72 | visible: root.encrypt | ||
73 | iconName: model.keyFound ? Kube.Icons.secure: Kube.Icons.insecure | ||
79 | } | 74 | } |
80 | Kube.IconButton { | 75 | Kube.IconButton { |
81 | id: removeButton | 76 | id: removeButton |