Also limit image height on userfieldsform

This commit is contained in:
Bernd Bestel 2020-08-31 19:53:34 +02:00
parent 576541782e
commit 844ec2ccae
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -121,7 +121,7 @@ Grocy.Components.UserfieldsForm.Load = function()
.attr('href', U('/files/userfiles/' + value))
.text(file_name);
file_info.find('img.userfield-current-file')
.attr('src', U('/files/userfiles/' + value + '?force_serve_as=picture'))
.attr('src', U('/files/userfiles/' + value + '?force_serve_as=picture&best_fit_width=250&best_fit_height=250'))
file_info.find('button.userfield-file-delete').click(
function () {
file_info.addClass('d-none');