mirror of https://github.com/Lissy93/dashy.git
💄 Display horizontally in wide mode
This commit is contained in:
parent
5684bf06e8
commit
9933766adf
|
@ -57,7 +57,9 @@
|
||||||
:itemSize="itemSize"
|
:itemSize="itemSize"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="sectionType === 'widget'">
|
<div
|
||||||
|
v-else-if="sectionType === 'widget'"
|
||||||
|
:class="`widget-list ${isWide? 'wide' : ''}`">
|
||||||
<WidgetBase
|
<WidgetBase
|
||||||
v-for="(widget, widgetIndx) in widgets"
|
v-for="(widget, widgetIndx) in widgets"
|
||||||
:key="widgetIndx"
|
:key="widgetIndx"
|
||||||
|
@ -119,6 +121,7 @@ export default {
|
||||||
items: Array,
|
items: Array,
|
||||||
widgets: Array,
|
widgets: Array,
|
||||||
index: Number,
|
index: Number,
|
||||||
|
isWide: Boolean,
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
Collapsable,
|
Collapsable,
|
||||||
|
@ -345,4 +348,17 @@ export default {
|
||||||
border-style: dashed;
|
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>
|
</style>
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
:itemSize="itemSizeBound"
|
:itemSize="itemSizeBound"
|
||||||
@itemClicked="finishedSearching()"
|
@itemClicked="finishedSearching()"
|
||||||
@change-modal-visibility="updateModalVisibility"
|
@change-modal-visibility="updateModalVisibility"
|
||||||
|
:isWide="!!singleSectionView || layoutOrientation === 'horizontal'"
|
||||||
:class="
|
:class="
|
||||||
(searchValue && filterTiles(section.items, searchValue).length === 0) ? 'no-results' : ''"
|
(searchValue && filterTiles(section.items, searchValue).length === 0) ? 'no-results' : ''"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue