Skip to content

Commit

Permalink
fix: moved toggle theme to different section
Browse files Browse the repository at this point in the history
main area bg-surface-white
  • Loading branch information
shariquerik committed Nov 28, 2024
1 parent 517adbd commit e9afb11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Layouts/DesktopLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/UserDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
Expand All @@ -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')),
Expand Down

0 comments on commit e9afb11

Please sign in to comment.