auto-fill folder list using css grid

This commit is contained in:
geoffrey45
2021-12-28 22:00:47 +03:00
parent 2b6bb2c0cb
commit 585a403a6c
2 changed files with 20 additions and 34 deletions
+3 -3
View File
@@ -41,8 +41,9 @@ export default {
} }
#f-items { #f-items {
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
grid-gap: 1rem;
border-top: 1px solid var(--separator); border-top: 1px solid var(--separator);
gap: 1rem; gap: 1rem;
padding-top: 1rem; padding-top: 1rem;
@@ -56,7 +57,6 @@ export default {
} }
.f-container .f-item { .f-container .f-item {
min-width: 13rem;
min-height: 5rem; min-height: 5rem;
display: flex; display: flex;
align-items: center; align-items: center;
+17 -31
View File
@@ -123,7 +123,7 @@ export default {
icon: "📁", icon: "📁",
}, },
{ {
title: "🈁 this page", title: "🈁 ここ",
icon: "🈁", icon: "🈁",
}, },
]; ];
@@ -198,6 +198,21 @@ export default {
background-color: #131313b2; background-color: #131313b2;
overflow: hidden; overflow: hidden;
.item {
position: relative;
background-color: rgb(39, 37, 37);
padding: 0.5rem;
border-radius: 0.5rem;
cursor: pointer;
margin: 0 $small 0 0;
display: flex;
align-items: center;
&:hover {
background-color: rgb(170, 50, 50);
}
}
.input { .input {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -208,17 +223,7 @@ export default {
margin-left: 3rem; margin-left: 3rem;
.item { .item {
position: relative;
background-color: rgb(39, 37, 37);
padding: 0.5rem;
border-radius: 0.5rem;
cursor: pointer;
margin: 0 $small 0 0;
display: flex;
align-items: center;
&:hover { &:hover {
background-color: rgb(170, 50, 50);
width: 4rem; width: 4rem;
.cancel { .cancel {
@@ -250,7 +255,6 @@ export default {
.v00 { .v00 {
opacity: 1; opacity: 1;
max-height: 3rem;
transition: all 0.2s ease-in; transition: all 0.2s ease-in;
} }
@@ -261,17 +265,6 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
.item {
cursor: pointer;
background-color: rgb(75, 70, 70);
padding: $small;
border-radius: $small;
&:hover {
background-color: rgb(170, 50, 50);
}
}
.item::before { .item::before {
content: "#"; content: "#";
color: grey; color: grey;
@@ -283,17 +276,10 @@ export default {
display: flex; display: flex;
.item { .item {
background-color: rgb(39, 37, 37);
padding: 0.5rem;
border-radius: 0.5rem;
cursor: pointer;
margin: $small; margin: $small;
&:hover {
background-color: rgb(170, 50, 50);
}
} }
} }
.right-search .scrollable { .right-search .scrollable {
height: 26rem; height: 26rem;
overflow-y: scroll; overflow-y: scroll;