Skip to content

Commit 8d3b9c6

Browse files
[Portal] Fix: update sidebar overflow behavior in DocLayout component (#7653)
Co-authored-by: Joaquim Verges <[email protected]>
1 parent ddef888 commit 8d3b9c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function Header() {
194194
const pathname = usePathname();
195195

196196
return (
197-
<header className="flex w-full flex-col gap-2 border-b bg-background pt-4 px-4 pb-4 xl:pb-0 lg:px-8 overflow-hidden">
197+
<header className="flex w-full flex-col gap-2 border-b bg-background p-4 xl:pb-0 lg:px-8 overflow-hidden">
198198
{/* Top row */}
199199
<div className="container flex items-center justify-between gap-6">
200200
<div className="flex items-center gap-2">

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export function DocSearch(props: { variant: "icon" | "search" }) {
358358
variant="outline"
359359
>
360360
<span className="text-xs">Search Docs</span>
361-
<div className="flex items-center gap-1 rounded-sm px-1 py-1 text-muted-foreground text-xs">
361+
<div className="flex items-center gap-1 rounded-sm p-1 text-muted-foreground text-xs">
362362
<CommandIcon className="size-3" />K
363363
</div>
364364
</Button>

0 commit comments

Comments
 (0)