From ed478a1d739bc1714817d02dd0a8eeb8d1e046a5 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Fri, 12 Feb 2021 18:20:17 +0100 Subject: [PATCH] change thumbnail display for extra wide images #433 --- docs/changelog.rst | 5 +++++ .../document-card-large/document-card-large.component.scss | 2 +- .../document-card-small/document-card-small.component.scss | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index d0d38cce4..47dd1bc02 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,11 @@ Changelog ********* +paperless-ng 1.1.2 +################## + +* Always show top left corner of thumbnails, even for extra wide documents. + paperless-ng 1.1.1 ################## diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss index a549b6f53..c49de93b5 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss @@ -6,7 +6,7 @@ .doc-img { object-fit: cover; - object-position: top; + object-position: top left; height: 100%; position: absolute; mix-blend-mode: multiply; diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss index a4af1bb11..cbe8fa6f6 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss @@ -2,7 +2,7 @@ .doc-img { object-fit: cover; - object-position: top; + object-position: top left; height: 200px; mix-blend-mode: multiply; }