mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-25 18:05:47 +03:00
💄 Display horizontally in wide mode
This commit is contained in:
parent
5684bf06e8
commit
9933766adf
@ -57,7 +57,9 @@
|
||||
:itemSize="itemSize"
|
||||
/>
|
||||
</div>
|
||||
<div v-else-if="sectionType === 'widget'">
|
||||
<div
|
||||
v-else-if="sectionType === 'widget'"
|
||||
:class="`widget-list ${isWide? 'wide' : ''}`">
|
||||
<WidgetBase
|
||||
v-for="(widget, widgetIndx) in widgets"
|
||||
:key="widgetIndx"
|
||||
@ -119,6 +121,7 @@ export default {
|
||||
items: Array,
|
||||
widgets: Array,
|
||||
index: Number,
|
||||
isWide: Boolean,
|
||||
},
|
||||
components: {
|
||||
Collapsable,
|
||||
@ -345,4 +348,17 @@ export default {
|
||||
border-style: dashed;
|
||||
}
|
||||
}
|
||||
|
||||
.widget-list {
|
||||
&.wide {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-around;
|
||||
.widget-base {
|
||||
min-width: 10rem;
|
||||
width: -webkit-fill-available;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
@ -41,6 +41,7 @@
|
||||
:itemSize="itemSizeBound"
|
||||
@itemClicked="finishedSearching()"
|
||||
@change-modal-visibility="updateModalVisibility"
|
||||
:isWide="!!singleSectionView || layoutOrientation === 'horizontal'"
|
||||
:class="
|
||||
(searchValue && filterTiles(section.items, searchValue).length === 0) ? 'no-results' : ''"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user