Skip to content

Commit 081e4b6

Browse files
committed
Adjust icon sizes in Header, DocSearch, and ThemeSwitcher components for consistency
1 parent 23cb388 commit 081e4b6

File tree

3 files changed

+8
-8
lines changed

3 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
@@ -195,7 +195,7 @@ export function Header() {
195195
const pathname = usePathname();
196196

197197
return (
198-
<header className="flex w-full flex-col gap-2 border-b bg-background pt-4 px-4 lg:px-8 overflow-hidden">
198+
<header className="flex w-full flex-col gap-2 border-b bg-background p-4 px-4 lg:px-8 overflow-hidden">
199199
<div className="container flex items-center justify-between gap-6">
200200
{/* Top row */}
201201
<div className="flex items-center gap-2">
@@ -250,14 +250,14 @@ export function Header() {
250250
onClick={() => router.push("/chat")}
251251
variant="ghost"
252252
>
253-
<MessageCircleIcon className="size-7" />
253+
<MessageCircleIcon className="size-5 lg:size-6" />
254254
</Button>
255255
<Button
256256
className="p-2"
257257
onClick={() => setShowBurgerMenu(!showBurgerMenu)}
258258
variant="ghost"
259259
>
260-
<MenuIcon className="size-7" />
260+
<MenuIcon className="size-5 lg:size-6" />
261261
</Button>
262262
</div>
263263
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function SearchModalContent(props: { closeModal: () => void }) {
198198
{/* links */}
199199
{data && data.length > 0 && (
200200
<div
201-
className="styled-scrollbar flex max-h-[50vh] min-h-[200px] flex-col gap-2 overflow-y-auto p-4"
201+
className="styled-scrollbar flex max-h-[50vh] min-h-[200px] flex-col gap-2 overflow-y-scroll no-scrollbar p-4"
202202
ref={scrollableElement}
203203
>
204204
{data.map((result) => {
@@ -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 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)