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
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const Header: React.FC = () => {
const t = (zh: string, en: string) => language === 'zh' ? zh : en;

return (
<header className="linear-header sticky top-0 z-40 hd-drag lg:hd-drag relative">
<header className="linear-header sticky top-0 z-50 hd-drag lg:hd-drag relative">
<div className="max-w-[1440px] mx-auto px-4 sm:px-6 lg:px-8">
<div className="linear-header-inner flex h-14 items-center justify-between">
{/* Logo and Title */}
Expand Down
9 changes: 9 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,15 @@ html body[data-scroll-locked] {
overflow: clip !important;
}

/* body's overflow never propagates to the viewport (html owns overflow), so the
root scroller must be locked directly or the page behind a modal overlay keeps
scrolling (scrollbar drag + wheel). hidden — not clip — keeps the viewport a
scroll container, so the scroll offset, the sticky header's anchor and the
scrollbar-gutter: stable reservation all survive the lock. */
html:has(body[data-scroll-locked]) {
overflow: hidden !important;
}

/* 窗口滚动条颜色由 --ui-line-strong 等 token 统一驱动(见文件底部 Linear 段落)。 */


Expand Down
Loading