Fix avatar upload overlay overflow at small size

This commit is contained in:
miruka
2019-07-16 11:48:57 -04:00
parent 9f4aadfd83
commit 29e21bc7c2
3 changed files with 13 additions and 11 deletions

View File

@@ -64,6 +64,7 @@ HGridLayout {
HColumnLayout {
anchors.centerIn: parent
spacing: currentSpacing
width: parent.width
HIcon {
svgName: "upload_avatar"
@@ -76,11 +77,12 @@ HGridLayout {
HLabel {
text: qsTr("Upload profile picture")
color: Qt.hsla(0, 0, 0.9, 1)
font.pixelSize: theme.fontSize.big
font.pixelSize: theme.fontSize.big *
avatar.height / avatarPreferredSize
wrapMode: Text.WordWrap
horizontalAlignment: Qt.AlignHCenter
Layout.fillWidth: true
Layout.alignment: Qt.AlignCenter
}
}
}