fix: moved toggle theme to different section

main area bg-surface-white
This commit is contained in:
Shariq Ansari 2024-11-28 15:46:47 +05:30
parent 517adbd366
commit e9afb11407
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<div class="h-full border-r bg-surface-menu-bar">
<AppSidebar />
</div>
<div class="flex-1 flex flex-col h-full overflow-auto">
<div class="flex-1 flex flex-col h-full overflow-auto bg-surface-white">
<AppHeader />
<slot />
</div>

View File

@ -79,11 +79,6 @@ let dropdownOptions = ref([
{
component: markRaw(Apps),
},
{
icon: computed(() => (theme.value === 'dark' ? 'sun' : 'moon')),
label: computed(() => __('Toggle theme')),
onClick: toggleTheme,
},
{
icon: 'life-buoy',
label: computed(() => __('Support')),
@ -100,6 +95,11 @@ let dropdownOptions = ref([
group: 'Others',
hideLabel: true,
items: [
{
icon: computed(() => (theme.value === 'dark' ? 'moon' : 'sun')),
label: computed(() => __('Toggle theme')),
onClick: toggleTheme,
},
{
icon: 'credit-card',
label: computed(() => __('Billing')),