Add object-fit to tag and folder (#72)

old-stable24
Varun Patil 2022-10-18 07:49:06 -07:00
parent df1bca35a7
commit 5de3e90b99
2 changed files with 3 additions and 1 deletions

View File

@ -183,6 +183,7 @@ export default class Folder extends Mixins(GlobalMixin) {
} }
> img { > img {
object-fit: cover;
padding: 0; padding: 0;
filter: brightness(50%); filter: brightness(50%);
transition: filter 0.2s ease-in-out; transition: filter 0.2s ease-in-out;

View File

@ -13,6 +13,7 @@
<div class="previews fill-block" ref="previews"> <div class="previews fill-block" ref="previews">
<div class="img-outer" v-for="info of previews" :key="info.fileid"> <div class="img-outer" v-for="info of previews" :key="info.fileid">
<img <img
class="fill-block"
:class="{ 'error': info.flag & c.FLAG_LOAD_FAIL }" :class="{ 'error': info.flag & c.FLAG_LOAD_FAIL }"
:key="'fpreview-' + info.fileid" :key="'fpreview-' + info.fileid"
:src="getPreviewUrl(info.fileid, info.etag)" :src="getPreviewUrl(info.fileid, info.etag)"
@ -166,7 +167,7 @@ export default class Tag extends Mixins(GlobalMixin) {
} }
> img { > img {
width: 100%; object-fit: cover;
padding: 0; padding: 0;
filter: brightness(60%); filter: brightness(60%);
cursor: pointer; cursor: pointer;