forked from FoundKeyGang/FoundKey
client: drive uses grid instead of flexbox
This commit is contained in:
parent
c983c4860c
commit
f7c4107ca4
1 changed files with 3 additions and 11 deletions
|
@ -51,7 +51,6 @@
|
||||||
v-if="'size' in f"
|
v-if="'size' in f"
|
||||||
:key="f.id"
|
:key="f.id"
|
||||||
v-anim="i"
|
v-anim="i"
|
||||||
class="item"
|
|
||||||
:file="f"
|
:file="f"
|
||||||
:select-mode="select === 'file'"
|
:select-mode="select === 'file'"
|
||||||
:is-selected="selectedFiles.some(x => x.id === f.id)"
|
:is-selected="selectedFiles.some(x => x.id === f.id)"
|
||||||
|
@ -63,7 +62,6 @@
|
||||||
v-else
|
v-else
|
||||||
:key="f.id"
|
:key="f.id"
|
||||||
v-anim="i"
|
v-anim="i"
|
||||||
class="item"
|
|
||||||
:folder="f"
|
:folder="f"
|
||||||
:select-mode="select === 'folder'"
|
:select-mode="select === 'folder'"
|
||||||
:is-selected="selectedFolders.some(x => x.id === f.id)"
|
:is-selected="selectedFolders.some(x => x.id === f.id)"
|
||||||
|
@ -621,15 +619,9 @@ onBeforeUnmount(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
> .contents {
|
> .contents {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(5, 1fr);
|
||||||
|
gap: .5em;
|
||||||
> .item {
|
|
||||||
flex-grow: 1;
|
|
||||||
width: 128px;
|
|
||||||
margin: 4px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
> .empty {
|
> .empty {
|
||||||
|
|
Loading…
Reference in a new issue