From 5fa03a645e8cdbcc70dd72e96c0c00cb51d0987f Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 25 Oct 2022 21:34:01 -0700 Subject: [PATCH] Minor display fixes --- src/components/frame/Photo.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/frame/Photo.vue b/src/components/frame/Photo.vue index b01ab3f3..51f64ee7 100644 --- a/src/components/frame/Photo.vue +++ b/src/components/frame/Photo.vue @@ -107,7 +107,7 @@ export default class Photo extends Mixins(GlobalMixin) { // Make the shorter dimension equal to base let size = base; if (this.data.w && this.data.h) { - size = Math.floor(base * Math.max(this.data.w, this.data.h) / Math.min(this.data.w, this.data.h)); + size = Math.floor(base * Math.max(this.data.w, this.data.h) / Math.min(this.data.w, this.data.h)) - 1; } return getPreviewUrl(this.data.fileid, this.data.etag, false, size) @@ -233,6 +233,7 @@ div.img-outer { .selected > & { padding: calc($icon-dist - 2px); } > img { + filter: contrast(1.05); // most real world images are a bit overexposed background-clip: content-box; object-fit: cover; cursor: pointer;