mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-30 20:26:56 +03:00
📱 Improved responsivness for large items with grid layout
This commit is contained in:
parent
a21dc50597
commit
51789f8164
@ -13,7 +13,7 @@
|
||||
No Items to Show Yet
|
||||
</div>
|
||||
<div v-else
|
||||
:class="`there-are-items ${isGridLayout? 'item-group-grid': ''}`"
|
||||
:class="`there-are-items ${isGridLayout? 'item-group-grid': ''} inner-size-${itemSize}`"
|
||||
:style="gridStyle"
|
||||
>
|
||||
<Item
|
||||
@ -213,6 +213,16 @@ export default {
|
||||
@include big-screen-up { --item-col-count: 12; }
|
||||
grid-template-columns: repeat(var(--item-col-count, 2), minmax(0, 1fr));
|
||||
}
|
||||
.there-are-items.inner-size-large {
|
||||
display: grid;
|
||||
@include phone { --item-col-count: 1; }
|
||||
@include tablet { --item-col-count: 2; }
|
||||
@include laptop { --item-col-count: 3; }
|
||||
@include monitor { --item-col-count: 5; }
|
||||
@include big-screen { --item-col-count: 6; }
|
||||
@include big-screen-up { --item-col-count: 8; }
|
||||
grid-template-columns: repeat(var(--item-col-count, 2), minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user