mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
2b08523e9e
The DocsLayout sidebar uses `position: fixed` with hardcoded `top: 76px / 96px` overrides at md/xl. When the rotating banner is visible, body-flow `Banners` + `BrandNav` shift down (banner ~54px + BrandNav 68/88px), but the fixed sidebar stays pinned — so the "LangGraph (Python)" framework picker overlaps the BrandNav row. Wrap both top overrides in `calc(... + var(--fd-banner-height, 0px))` so the sidebar slides down by the banner's height when shown and snaps back when dismissed. `Banners` already writes that variable on `<html>` (54px / 0px), and `MobileTopNav` uses the same pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>