Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 10 additions & 30 deletions frontend/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -408,49 +408,29 @@ body .hover\:\text-\[\#E6EDF3\]:hover {
overflow-y: auto;
}

/* Native scrollbar style optimization */
/* Native scrollbar: always visible, thin and subtle */
.overflow-y-auto {
scrollbar-width: none;
scrollbar-color: transparent transparent;
scrollbar-width: thin;
scrollbar-color: hsl(var(--muted-foreground) / 0.3) transparent;
}

.overflow-y-auto::-webkit-scrollbar {
width: 6px;
width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
background: transparent;
border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 3px;
}

.overflow-y-auto.scrolling,
.overflow-y-auto:hover,
.overflow-y-auto:focus-within {
scrollbar-width: thin;
scrollbar-color: hsl(var(--muted-foreground) / 0.35) hsl(var(--muted) / 0.18);
}

.overflow-y-auto.scrolling::-webkit-scrollbar-track,
.overflow-y-auto:hover::-webkit-scrollbar-track,
.overflow-y-auto:focus-within::-webkit-scrollbar-track {
background: hsl(var(--muted) / 0.18);
background-color: hsl(var(--muted-foreground) / 0.3);
border-radius: 4px;
border: 2px solid transparent;
background-clip: content-box;
}

.overflow-y-auto.scrolling::-webkit-scrollbar-thumb,
.overflow-y-auto:hover::-webkit-scrollbar-thumb,
.overflow-y-auto:focus-within::-webkit-scrollbar-thumb {
background: hsl(var(--muted-foreground) / 0.35);
}

.overflow-y-auto.scrolling::-webkit-scrollbar-thumb:hover,
.overflow-y-auto:hover::-webkit-scrollbar-thumb:hover,
.overflow-y-auto:focus-within::-webkit-scrollbar-thumb:hover {
background: hsl(var(--muted-foreground) / 0.5);
.overflow-y-auto::-webkit-scrollbar-thumb:hover {
background-color: hsl(var(--muted-foreground) / 0.5);
}
Comment thread
bluefish-08 marked this conversation as resolved.

/* Ensure execution log content does not overflow */
Expand Down
29 changes: 0 additions & 29 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Metadata } from "next";
import type { CSSProperties } from "react";
import Script from "next/script";
import "./globals.css";
import { AuthProvider } from "@/contexts/auth-context";
import { ThemeProvider } from "@/contexts/theme-context";
Expand Down Expand Up @@ -128,34 +127,6 @@ export default function RootLayout({
</AuthProvider>
</ThemeProvider>
</I18nProvider>
<Script id="scrollbar-visibility-controller" strategy="afterInteractive">
{`
(() => {
const hideTimers = new WeakMap();

document.addEventListener("scroll", (event) => {
const target = event.target;
if (!(target instanceof HTMLElement) || !target.classList.contains("overflow-y-auto")) {
return;
}

target.classList.add("scrolling");

const existingTimer = hideTimers.get(target);
if (existingTimer) {
window.clearTimeout(existingTimer);
}

const nextTimer = window.setTimeout(() => {
target.classList.remove("scrolling");
hideTimers.delete(target);
}, 700);

hideTimers.set(target, nextTimer);
}, true);
})();
`}
</Script>
</body>
</html>
);
Expand Down
Loading