Skip to content
Snippets Groups Projects
Unverified Commit 5be8298d authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Merge pull request #1215 from foxB612/fix-thumbnail-size

Fix UploadBox thumbnail size
parents 3109508e f3ecef5c
No related branches found
No related tags found
No related merge requests found
Pipeline #3855 passed
...@@ -48,8 +48,8 @@ Page { ...@@ -48,8 +48,8 @@ Page {
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
sourceSize.height: height sourceSize.height: parent.availableHeight - namefield.height
sourceSize.width: width sourceSize.width: parent.availableWidth
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
smooth: true smooth: true
mipmap: true mipmap: true
...@@ -63,6 +63,7 @@ Page { ...@@ -63,6 +63,7 @@ Page {
source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/"+typeStr+".svg?" + Nheko.colors.buttonText) source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/"+typeStr+".svg?" + Nheko.colors.buttonText)
} }
MatrixTextField { MatrixTextField {
id: namefield
Layout.fillWidth: true Layout.fillWidth: true
text: modelData.filename text: modelData.filename
onTextEdited: modelData.filename = text onTextEdited: modelData.filename = text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment