Skip to content

Commit 5f88e52

Browse files
committed
fix invisible menu icon
1 parent 91e3544 commit 5f88e52

File tree

1 file changed

+9
-20
lines changed
  • packages/htmldocs/src/app/components

1 file changed

+9
-20
lines changed

packages/htmldocs/src/app/components/shell.tsx

+9-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"use client";
22
import * as React from "react";
33
import { cn } from "~/lib/utils";
4+
import { List } from "@phosphor-icons/react";
45
import { Sidebar } from "./sidebar";
56
import { Topbar } from "./topbar";
67
import { Logo } from "./logo";
8+
import { Button } from "./ui/button";
79

810
type RootProps = React.ComponentPropsWithoutRef<"div">;
911

@@ -30,35 +32,22 @@ export const Shell = ({
3032

3133
return (
3234
<>
33-
<div className="flex bg-background text-white flex-col h-screen overflow-x-hidden print-hide">
35+
<div className="flex bg-background text-foreground flex-col h-screen overflow-x-hidden print-hide">
3436
<div className="flex lg:hidden items-center px-6 justify-between h-[70px] border-b border-slate-6">
3537
<div className="h-[70px] flex items-center">
3638
<Logo />
3739
</div>
3840

39-
<button
40-
className="h-6 w-6 rounded flex items-center justify-center text-white"
41+
<Button
42+
className="group"
43+
variant="ghost"
44+
size="icon"
4145
onClick={() => {
4246
setSidebarToggled((v) => !v);
4347
}}
44-
type="button"
4548
>
46-
<svg
47-
fill="none"
48-
height="16"
49-
stroke="white"
50-
viewBox="0 0 15 15"
51-
width="16"
52-
xmlns="http://www.w3.org/2000/svg"
53-
>
54-
<path
55-
clipRule="evenodd"
56-
d="M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z"
57-
fill="currentColor"
58-
fillRule="evenodd"
59-
/>
60-
</svg>
61-
</button>
49+
<List height={20} width={20} className="text-muted-foreground group-hover:text-foreground transition-colors duration-150"/>
50+
</Button>
6251
</div>
6352

6453
<div className="flex bg-slate-2">

0 commit comments

Comments
 (0)