Fix UploadBox thumbnail size

This commit is contained in:
foxb612 2022-10-24 23:31:15 +08:00
parent ccd2465066
commit f3ecef5cd7
1 changed files with 3 additions and 2 deletions

View File

@ -48,8 +48,8 @@ Page {
Layout.fillHeight: true
Layout.fillWidth: true
sourceSize.height: height
sourceSize.width: width
sourceSize.height: parent.availableHeight - namefield.height
sourceSize.width: parent.availableWidth
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: true
@ -63,6 +63,7 @@ Page {
source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/"+typeStr+".svg?" + Nheko.colors.buttonText)
}
MatrixTextField {
id: namefield
Layout.fillWidth: true
text: modelData.filename
onTextEdited: modelData.filename = text