fix: mobile dropdowns, katex overflow
This commit is contained in:
parent
0efd0d992d
commit
32fd23e2cf
3 changed files with 6 additions and 3 deletions
|
@ -40,7 +40,7 @@ const MobileMenu = () => {
|
|||
<span className="sr-only">Toggle menu</span>
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="end" className="mr-4 bg-background">
|
||||
<DropdownMenuContent align="end" className="bg-background">
|
||||
{NAV_LINKS.map((item) => (
|
||||
<DropdownMenuItem key={item.href} asChild>
|
||||
<a
|
||||
|
|
|
@ -51,7 +51,7 @@ export function ModeToggle() {
|
|||
<span className="sr-only">Toggle theme</span>
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="end" className="mr-4 bg-background">
|
||||
<DropdownMenuContent align="end" className="bg-background">
|
||||
<DropdownMenuItem onClick={() => setThemeState('theme-light')}>
|
||||
<Sun className="mr-2 size-4" />
|
||||
<span>Light</span>
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
|
||||
html {
|
||||
color-scheme: light;
|
||||
scrollbar-gutter: stable both-edges;
|
||||
@apply bg-background text-foreground;
|
||||
|
||||
&.dark {
|
||||
|
@ -70,6 +69,10 @@
|
|||
article {
|
||||
@apply prose-headings:scroll-mt-20;
|
||||
|
||||
.katex-display {
|
||||
@apply overflow-x-auto overflow-y-hidden py-4;
|
||||
}
|
||||
|
||||
/* Removes background from <mark> elements */
|
||||
mark {
|
||||
@apply bg-transparent;
|
||||
|
|
Loading…
Add table
Reference in a new issue