feat: differentiate dir listing color (#18)
parent
8688af97b7
commit
04e3be48a4
|
@ -12,6 +12,7 @@
|
||||||
:aria-label="name"
|
:aria-label="name"
|
||||||
:aria-selected="isSelected"
|
:aria-selected="isSelected"
|
||||||
ref="item"
|
ref="item"
|
||||||
|
:class="listingClass"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<img
|
<img
|
||||||
|
@ -101,6 +102,13 @@ export default {
|
||||||
if (this.type === "video") return "movie";
|
if (this.type === "video") return "movie";
|
||||||
return "insert_drive_file";
|
return "insert_drive_file";
|
||||||
},
|
},
|
||||||
|
listingClass() {
|
||||||
|
if (this.isDir) return "folder";
|
||||||
|
if (this.type === "image") return "image";
|
||||||
|
if (this.type === "audio") return "audio";
|
||||||
|
if (this.type === "video") return "video";
|
||||||
|
return "file";
|
||||||
|
},
|
||||||
isDraggable() {
|
isDraggable() {
|
||||||
return this.readOnly == undefined && this.user.perm.rename;
|
return this.readOnly == undefined && this.user.perm.rename;
|
||||||
},
|
},
|
||||||
|
|
|
@ -53,6 +53,14 @@
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#listing .item.folder i {
|
||||||
|
color: var(--blue);
|
||||||
|
}
|
||||||
|
|
||||||
|
#listing .item[aria-selected=true].folder i {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
#listing .item img {
|
#listing .item img {
|
||||||
width: 4em;
|
width: 4em;
|
||||||
height: 4em;
|
height: 4em;
|
||||||
|
|
Loading…
Reference in New Issue