fix(ui/views/App/Main/Contacts): avoid truncated avatars

This commit is contained in:
Ronan Abhamon 2017-03-28 09:26:39 +02:00
parent 4899a1abb2
commit b340d811da

View file

@ -223,11 +223,19 @@ ColumnLayout {
}
spacing: ContactsStyle.contact.spacing
Avatar {
Layout.preferredHeight: ContactsStyle.contact.avatarSize
Layout.preferredWidth: ContactsStyle.contact.avatarSize
image: $contact.vcard.avatar
username: $contact.vcard.username
Item {
Layout.preferredHeight: parent.height
Layout.preferredWidth: parent.height
Avatar {
anchors.centerIn: parent
image: $contact.vcard.avatar
username: $contact.vcard.username
height: ContactsStyle.contact.avatarSize
width: ContactsStyle.contact.avatarSize
}
}
Text {