Skip to content

Commit

Permalink
fix light mode menu colors
Browse files Browse the repository at this point in the history
  • Loading branch information
dotFionn committed Mar 30, 2024
1 parent fe93613 commit 7b301cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function ProfilePage() {
</div>

<div className="flex flex-row w-full">
<Menu className='me-2 min-w-fit w-fit' model={Object.entries(tabs).map(([k, { ...data }]) => ({ ...data, command: () => setActiveTab(k as TTabId), className: activeTab == k ? 'bg-zinc-700' : undefined }))} />
<Menu className='me-2 min-w-fit w-fit' model={Object.entries(tabs).map(([k, { ...data }]) => ({ ...data, command: () => setActiveTab(k as TTabId), className: activeTab == k ? 'bg-zinc-300 dark:bg-zinc-700' : undefined }))} />
<Card title={tabs[activeTab].label} pt={{ root: { className: 'w-full' } }}>
{activeTab == 'details' && <div>
<table>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/utils/ui/customDesign/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const menu = {
className: classNames('text-gray-700 dark:text-white/80 py-3 px-5 select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative'),
},
menuitem: {
className: classNames('hover:bg-zinc-600'),
className: classNames('hover:bg-zinc-200 dark:hover:bg-zinc-600'),
},
icon: 'text-gray-600 dark:text-white/70 mr-2',
submenuheader: {
Expand Down

0 comments on commit 7b301cb

Please sign in to comment.