Minor display fixes

old-stable24
Varun Patil 2022-10-25 21:34:01 -07:00
parent 9a47224c09
commit 5fa03a645e
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export default class Photo extends Mixins(GlobalMixin) {
// Make the shorter dimension equal to base // Make the shorter dimension equal to base
let size = base; let size = base;
if (this.data.w && this.data.h) { 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) return getPreviewUrl(this.data.fileid, this.data.etag, false, size)
@ -233,6 +233,7 @@ div.img-outer {
.selected > & { padding: calc($icon-dist - 2px); } .selected > & { padding: calc($icon-dist - 2px); }
> img { > img {
filter: contrast(1.05); // most real world images are a bit overexposed
background-clip: content-box; background-clip: content-box;
object-fit: cover; object-fit: cover;
cursor: pointer; cursor: pointer;