summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorfoxb612 <cmb612@outlook.com>2022-10-24 23:31:15 +0800
committerfoxb612 <cmb612@outlook.com>2022-10-25 03:22:12 +0800
commitf3ecef5cd78d630d3e4c82ffa7cd23c86fa6138a (patch)
tree5ca3a838ec48eb985ac57d14c2e283358c3b3a8d /resources/qml
parentFix windows build... (diff)
downloadnheko-f3ecef5cd78d630d3e4c82ffa7cd23c86fa6138a.tar.xz
Fix UploadBox thumbnail size
Diffstat (limited to 'resources/qml')
-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