Skip to content

Commit

Permalink
fix selection problem
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Oct 17, 2024
1 parent 754fd2e commit df18a3b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ export default async function LocaleLayout({
className={cn(`${inter.variable} ${notoSansJP.variable}`)}
suppressHydrationWarning
>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem={false}
disableTransitionOnChange
>
<ThemeProvider attribute="class" defaultTheme="dark">
<NextIntlClientProvider messages={messages}>
<SolanaWalletProvider>{children}</SolanaWalletProvider>
<Toaster />
Expand Down
7 changes: 7 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
'Segoe UI Symbol',
'Noto Color Emoji';
}

::selection {
background-color: rgba(209, 213, 219, 0.5);
}
.dark ::selection {
background-color: rgba(82, 82, 91, 0.5);
}
}

@layer base {
Expand Down
4 changes: 2 additions & 2 deletions src/components/config/ModeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export function ModeToggle() {
<DropdownMenuItem onClick={() => setTheme('dark')}>
{t('common.darkMode')}
</DropdownMenuItem>
{/* <DropdownMenuItem onClick={() => setTheme('system')}>
<DropdownMenuItem onClick={() => setTheme('system')}>
{t('common.systemMode')}
</DropdownMenuItem> */}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
)
Expand Down

0 comments on commit df18a3b

Please sign in to comment.