Skip to content

Commit 2b68954

Browse files
committed
[Portal] Update: Adjust icon sizes and improve sidebar styling in Header and DocLayout components
1 parent c47ba2f commit 2b68954

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function Header() {
199199
const pathname = usePathname();
200200

201201
return (
202-
<header className="flex w-full flex-col gap-2 border-b bg-background pt-4 px-4 lg:px-8 overflow-hidden">
202+
<header className="flex w-full flex-col gap-2 border-b bg-background p-4 lg:px-8 overflow-hidden">
203203
<div className="container flex items-center justify-between gap-6">
204204
{/* Top row */}
205205
<div className="flex items-center gap-2">
@@ -254,14 +254,14 @@ export function Header() {
254254
onClick={() => router.push("/chat")}
255255
variant="ghost"
256256
>
257-
<MessageCircleIcon className="size-7" />
257+
<MessageCircleIcon className="size-5 lg:size-6" />
258258
</Button>
259259
<Button
260260
className="p-2"
261261
onClick={() => setShowBurgerMenu(!showBurgerMenu)}
262262
variant="ghost"
263263
>
264-
<MenuIcon className="size-7" />
264+
<MenuIcon className="size-5 lg:size-6" />
265265
</Button>
266266
</div>
267267
</div>

apps/portal/src/components/Layouts/DocLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function DocLayout(props: DocLayoutProps) {
3636
>
3737
<aside
3838
className={clsx(
39-
"sticky top-sticky-top-height h-sidebar-height flex-col overflow-y-scroll",
39+
"sticky top-sticky-top-height h-sidebar-height flex-col overflow-y-scroll no-scrollbar",
4040
"hidden xl:flex",
4141
)}
4242
>

apps/portal/src/components/others/DocSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export function DocSearch(props: { variant: "icon" | "search" }) {
368368
{!forDesktop && (
369369
<DialogTrigger asChild>
370370
<Button className="px-3" variant="ghost">
371-
<SearchIcon className="size-6 text-foreground" />
371+
<SearchIcon className="size-5 lg:size-6 text-foreground" />
372372
</Button>
373373
</DialogTrigger>
374374
)}

apps/portal/src/components/others/theme/ThemeSwitcher.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export function ThemeSwitcher(props: { className?: string }) {
2222
variant="outline"
2323
>
2424
{!hasMounted ? (
25-
<Skeleton className="size-6 lg:size-5" />
25+
<Skeleton className="size-5 lg:size-6" />
2626
) : theme === "light" ? (
27-
<SunIcon className="size-6 lg:size-5" />
27+
<SunIcon className="size-5 lg:size-6" />
2828
) : (
29-
<MoonIcon className="size-6 lg:size-5" />
29+
<MoonIcon className="size-5 lg:size-6" />
3030
)}
3131
</Button>
3232
);

0 commit comments

Comments
 (0)