]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: dont invert pdf colors in FF (#8110)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 30 Oct 2024 07:54:19 +0000 (00:54 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 07:54:19 +0000 (00:54 -0700)
src-ui/src/app/components/common/preview-popup/preview-popup.component.html
src-ui/src/app/components/common/preview-popup/preview-popup.component.scss

index ecbc215d8aa4d0ad7e1d59ca21926e0b1abc771c..096dcf04d2285eec6c884cfb39d72c2f927ba579 100644 (file)
@@ -5,7 +5,7 @@
     </div>
   } @else {
     @if (renderAsObject) {
-      <object [data]="previewURL | safeUrl" width="100%" class="bg-light" [class.p-2]="!isPdf"></object>
+      <object [data]="previewURL | safeUrl" width="100%" class="bg-light" [class.p-2]="!isPdf" [class.pdf]="isPdf"></object>
     } @else {
       @if (requiresPassword) {
         <div class="w-100 h-100 position-relative">
index 1ce4585c4b0aaaaaf8980e2b5d7474860e09694d..c44e29f4312626b114a80778e4851b8580258ae3 100644 (file)
@@ -17,7 +17,7 @@
     background-color: #e7e7e7;
   }
 
-  object {
+  object:not(.pdf) {
     mix-blend-mode: difference;
     &.p-2 {
       padding: 0 !important;