Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(frontend:files): remove forced black background for transparent images in viewer

johaven8ebcace49fb5
diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html
index 79085b27..525e6e1f 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html
@@ -16,7 +16,7 @@
<div class="modal-body">
@switch (shortMime) {
@case ('image') {
- <div class="d-flex justify-content-center bg-black" [style.height.px]="currentHeight">
+ <div class="d-flex justify-content-center" [style.height.px]="currentHeight">
<img [src]="currentFile.dataUrl" [style.max-height.px]="currentHeight" alt="" class="img-fluid align-self-center">
</div>
}