mirror of https://github.com/Lissy93/dashy.git
Replaces v-if with css display none
This fixes theme not being applied on load when settings are hidden, since the theme selector component will still be mounted, just not visible
This commit is contained in:
parent
75aa15dbf0
commit
b03bedd227
|
@ -6,7 +6,7 @@
|
||||||
:active="!modalOpen"
|
:active="!modalOpen"
|
||||||
/>
|
/>
|
||||||
<div class="options-outer">
|
<div class="options-outer">
|
||||||
<div class="options-container" v-if="settingsVisible">
|
<div :class="`options-container ${!settingsVisible ? 'hide' : ''}`">
|
||||||
<ThemeSelector :themes="availableThemes"
|
<ThemeSelector :themes="availableThemes"
|
||||||
:confTheme="getInitialTheme()" :userThemes="getUserThemes()" />
|
:confTheme="getInitialTheme()" :userThemes="getUserThemes()" />
|
||||||
<LayoutSelector :displayLayout="displayLayout" @layoutUpdated="updateDisplayLayout"/>
|
<LayoutSelector :displayLayout="displayLayout" @layoutUpdated="updateDisplayLayout"/>
|
||||||
|
@ -133,6 +133,9 @@ export default {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
&:hover { opacity: 1; }
|
&:hover { opacity: 1; }
|
||||||
}
|
}
|
||||||
|
&.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.show-hide-container {
|
.show-hide-container {
|
||||||
|
|
Loading…
Reference in New Issue