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