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

@ -32,7 +32,7 @@
- Html links color
- `pyotherside.atexit()`
- Way to put sidepane back to auto-sizing (snap)
- Better look for arrows when sidepane collapsed
- Better look for arrows and option button when sidepane collapsed
- Don't put own messages to the right past certain width
- Invite to room

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
}
}
}

View File

@ -69,17 +69,17 @@ Item {
id: initialRoomTimer
interval: 5000
repeat: false
onTriggered: pageStack.showRoom(
"@test_mary:matrix.org",
// onTriggered: pageStack.showRoom(
// "@test_mary:matrix.org",
// "Rooms",
// "!TSXGsbBbdwsdylIOJZ:matrix.org"
"Invites",
"!xjqvLOGhMVutPXpAqi:matrix.org"
)
// onTriggered: pageStack.showPage(
// "EditAccount/EditAccount",
// {"userId": "@test_mary:matrix.org"}
// "Invites",
// "!xjqvLOGhMVutPXpAqi:matrix.org"
// )
onTriggered: pageStack.showPage(
"EditAccount/EditAccount",
{"userId": "@test_mary:matrix.org"}
)
}
onCurrentItemChanged: if (currentItem) {