feat: make coolify full width by default
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<nav class="flex flex-col flex-1 bg-white border-r dark:border-coolgray-200 dark:bg-base" x-data="{
|
<nav class="flex flex-col flex-1 bg-white border-r dark:border-coolgray-200 dark:bg-base" x-data="{
|
||||||
switchWidth() {
|
switchWidth() {
|
||||||
if (this.full === 'full') {
|
if (this.full === 'full') {
|
||||||
localStorage.removeItem('pageWidth');
|
localStorage.setItem('pageWidth', 'center');
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem('pageWidth', 'full');
|
localStorage.setItem('pageWidth', 'full');
|
||||||
}
|
}
|
||||||
@@ -74,8 +74,10 @@
|
|||||||
<button @click="setTheme('light')" class="px-1 dropdown-item-no-padding">Light</button>
|
<button @click="setTheme('light')" class="px-1 dropdown-item-no-padding">Light</button>
|
||||||
<button @click="setTheme('system')" class="px-1 dropdown-item-no-padding">System</button>
|
<button @click="setTheme('system')" class="px-1 dropdown-item-no-padding">System</button>
|
||||||
<div class="my-1 font-bold border-b dark:border-coolgray-500 dark:text-white text-md">Width</div>
|
<div class="my-1 font-bold border-b dark:border-coolgray-500 dark:text-white text-md">Width</div>
|
||||||
<button @click="switchWidth()" class="px-1 dropdown-item-no-padding" x-show="full">Center</button>
|
<button @click="switchWidth()" class="px-1 dropdown-item-no-padding"
|
||||||
<button @click="switchWidth()" class="px-1 dropdown-item-no-padding" x-show="!full">Full</button>
|
x-show="full === 'full'">Center</button>
|
||||||
|
<button @click="switchWidth()" class="px-1 dropdown-item-no-padding"
|
||||||
|
x-show="full === 'center'">Full</button>
|
||||||
</div>
|
</div>
|
||||||
</x-dropdown>
|
</x-dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -9,6 +9,10 @@
|
|||||||
open: false,
|
open: false,
|
||||||
init() {
|
init() {
|
||||||
this.pageWidth = localStorage.getItem('pageWidth');
|
this.pageWidth = localStorage.getItem('pageWidth');
|
||||||
|
if (!this.pageWidth) {
|
||||||
|
this.pageWidth = 'full';
|
||||||
|
localStorage.setItem('pageWidth', 'full');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}" x-cloak class="mx-auto" :class="pageWidth === 'full' ? '' : 'max-w-7xl'">
|
}" x-cloak class="mx-auto" :class="pageWidth === 'full' ? '' : 'max-w-7xl'">
|
||||||
<div class="relative z-50 lg:hidden" :class="open ? 'block' : 'hidden'" role="dialog" aria-modal="true">
|
<div class="relative z-50 lg:hidden" :class="open ? 'block' : 'hidden'" role="dialog" aria-modal="true">
|
||||||
|
Reference in New Issue
Block a user