Add object-fit to tag and folder (#72)
parent
df1bca35a7
commit
5de3e90b99
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue