Fix: Hide scrollbar on content area (scroll still works)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-26 21:23:14 +02:00
parent aaa52a8901
commit f2300219d7
3 changed files with 11 additions and 2 deletions

View File

@@ -4,6 +4,15 @@
/* BreakPilot Studio v2 - Base Styles */
/* Hide scrollbars globally but keep scroll functionality */
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
* {
box-sizing: border-box;
margin: 0;

View File

@@ -20,7 +20,7 @@ export default function LearnLayout({ children }: { children: React.ReactNode })
<div className="relative z-10 p-4 flex-shrink-0">
<Sidebar />
</div>
<div className="flex-1 flex flex-col relative z-10 overflow-y-auto">
<div className="flex-1 flex flex-col relative z-10 overflow-y-auto scrollbar-hide" style={{ scrollbarWidth: 'none' }}>
{children}
</div>
</div>

View File

@@ -19,7 +19,7 @@ export default function ParentLayout({ children }: { children: React.ReactNode }
<div className="relative z-10 p-4 flex-shrink-0">
<Sidebar />
</div>
<div className="flex-1 flex flex-col relative z-10 overflow-y-auto">
<div className="flex-1 flex flex-col relative z-10 overflow-y-auto scrollbar-hide" style={{ scrollbarWidth: 'none' }}>
{children}
</div>
</div>