summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-10-25 16:06:26 +0000
committerGitHub <noreply@github.com>2022-10-25 16:06:26 +0000
commit5be8298d0a183ffe9205910d24aaae6e0062d926 (patch)
tree91410a3afee6e7dd6dc9d70cd71f18c113b31611 /resources
parentTranslated using Weblate (Estonian) (diff)
parentFix UploadBox thumbnail size (diff)
downloadnheko-5be8298d0a183ffe9205910d24aaae6e0062d926.tar.xz
Merge pull request #1215 from foxB612/fix-thumbnail-size
Fix UploadBox thumbnail size
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/UploadBox.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/qml/UploadBox.qml b/resources/qml/UploadBox.qml
index ba00f205..ccd59f45 100644
--- a/resources/qml/UploadBox.qml
+++ b/resources/qml/UploadBox.qml
@@ -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