Add object-fit to tag and folder (#72)
parent
630afbfc6a
commit
44dbadf7f0
|
@ -183,6 +183,7 @@ export default class Folder extends Mixins(GlobalMixin) {
|
|||
}
|
||||
|
||||
> img {
|
||||
object-fit: cover;
|
||||
padding: 0;
|
||||
filter: brightness(50%);
|
||||
transition: filter 0.2s ease-in-out;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<div class="previews fill-block" ref="previews">
|
||||
<div class="img-outer" v-for="info of previews" :key="info.fileid">
|
||||
<img
|
||||
class="fill-block"
|
||||
:class="{ 'error': info.flag & c.FLAG_LOAD_FAIL }"
|
||||
:key="'fpreview-' + info.fileid"
|
||||
:src="getPreviewUrl(info.fileid, info.etag)"
|
||||
|
@ -166,7 +167,7 @@ export default class Tag extends Mixins(GlobalMixin) {
|
|||
}
|
||||
|
||||
> img {
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
padding: 0;
|
||||
filter: brightness(60%);
|
||||
cursor: pointer;
|
||||
|
|
Loading…
Reference in New Issue