Skip to content

Commit facff7f

Browse files
committed
fix(frontend:files): keep aspect ratio for thumbnails with large width
1 parent d38ee5a commit facff7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/app/applications/spaces/components/spaces-browser.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
class="card">
242242
<div [attr.rowIndex]="$index" class="card-body">
243243
@if (f.isImage) {
244-
<img (error)="f.isImage = false" [style.height.px]="galleryMode.image" alt="" class="img-fluid"
244+
<img (error)="f.isImage = false" [style.max-height.px]="galleryMode.image" alt="" class="img-fluid"
245245
draggable="true" src="{{f.thumbnailUrl}}?size={{galleryMode.imageRes}}">
246246
} @else {
247247
<img [src]="f.mimeUrl" [height]="galleryMode.image" [width]="galleryMode.image" alt="" draggable="true" (error)="f.fallBackMimeUrl()">

0 commit comments

Comments
 (0)