From fc338a4b5957ad3b4c1fe14c5963624f69df5513 Mon Sep 17 00:00:00 2001 From: Accusys Date: Fri, 22 May 2026 10:07:40 +0800 Subject: [PATCH] fix: sidebar sticky top, independent scroll from content --- docs_v1.0/doc_wasm/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_v1.0/doc_wasm/index.html b/docs_v1.0/doc_wasm/index.html index 5ea42c3..94fbe16 100644 --- a/docs_v1.0/doc_wasm/index.html +++ b/docs_v1.0/doc_wasm/index.html @@ -11,7 +11,7 @@ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; } #app { display: flex; min-height: 100vh; } html, body { height: 100%; } -.sidebar { width: 260px; min-height: 100vh; background: #fff; border-right: 1px solid #ddd; padding: 20px; display: flex; flex-direction: column; } +.sidebar { width: 260px; height: 100vh; position: sticky; top: 0; overflow-y: auto; background: #fff; border-right: 1px solid #ddd; padding: 20px; display: flex; flex-direction: column; } .sidebar h1 { font-size: 18px; margin-bottom: 16px; } .sidebar a { display: block; padding: 6px 0; color: #0066cc; text-decoration: none; font-size: 14px; cursor: pointer; } .sidebar a:hover { color: #003d80; }