Compare commits

..

2 Commits

Author SHA1 Message Date
a46e296dc3 Claude tried a second fix 2026-02-23 18:51:26 +02:00
6ed3b4bbe6 Claude fixed (hopefully) the top bars clipping outside the screen 2026-02-23 18:06:26 +02:00
4 changed files with 15 additions and 7 deletions

View File

@@ -58,12 +58,20 @@ summary {
cursor: pointer; cursor: pointer;
} }
/* Global dark background */ /* Global dark background - lock to viewport, no page-level scroll */
html,
body { body {
height: 100%;
overflow: hidden;
background-color: var(--bg-primary); background-color: var(--bg-primary);
color: var(--text-primary); color: var(--text-primary);
} }
#root {
height: 100%;
overflow: hidden;
}
/* Scrollbar styling */ /* Scrollbar styling */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 8px;

View File

@@ -4,11 +4,11 @@ import Sidebar from "./Sidebar";
export default function MainLayout() { export default function MainLayout() {
return ( return (
<div className="flex min-h-screen" style={{ backgroundColor: "var(--bg-primary)" }}> <div className="flex h-screen overflow-hidden" style={{ backgroundColor: "var(--bg-primary)" }}>
<Sidebar /> <Sidebar />
<div className="flex-1 flex flex-col"> <div className="flex-1 flex flex-col min-w-0 overflow-hidden">
<Header /> <Header />
<main className="flex-1 p-6"> <main className="flex-1 p-6 overflow-y-auto min-w-0">
<Outlet /> <Outlet />
</main> </main>
</div> </div>

View File

@@ -50,7 +50,7 @@ export default function Sidebar() {
const canManageStaff = hasRole("sysadmin", "admin"); const canManageStaff = hasRole("sysadmin", "admin");
return ( return (
<aside className="w-56 min-h-screen p-4 border-r flex flex-col" style={{ backgroundColor: "var(--bg-sidebar)", borderColor: "var(--border-primary)" }}> <aside className="w-56 h-screen flex-shrink-0 p-4 border-r flex flex-col overflow-y-auto" style={{ backgroundColor: "var(--bg-sidebar)", borderColor: "var(--border-primary)" }}>
<div className="mb-8 px-2"> <div className="mb-8 px-2">
<img <img
src="/logo-dark.png" src="/logo-dark.png"

View File

@@ -971,7 +971,7 @@ export default function MelodyList() {
const selectClass = "px-3 py-2 rounded-md text-sm cursor-pointer border"; const selectClass = "px-3 py-2 rounded-md text-sm cursor-pointer border";
return ( return (
<div className="w-full min-w-0 max-w-full overflow-hidden"> <div className="w-full min-w-0 max-w-full">
<div className="w-full min-w-0 relative" style={{ zIndex: 30 }}> <div className="w-full min-w-0 relative" style={{ zIndex: 30 }}>
<div className="flex items-center justify-between mb-6 w-full min-w-0"> <div className="flex items-center justify-between mb-6 w-full min-w-0">
<h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}>Melodies</h1> <h1 className="text-2xl font-bold" style={{ color: "var(--text-heading)" }}>Melodies</h1>
@@ -1215,7 +1215,7 @@ export default function MelodyList() {
</div> </div>
) : ( ) : (
<div <div
className="rounded-lg border max-w-full" className="rounded-lg border max-w-full overflow-hidden"
style={{ style={{
backgroundColor: "var(--bg-card)", backgroundColor: "var(--bg-card)",
borderColor: "var(--border-primary)", borderColor: "var(--border-primary)",