From 13c4b515d7233e7551e3579da005849ba12e35cf Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 25 Mar 2026 14:41:17 +0800 Subject: [PATCH] fix(docs): widen API drawer and fix TOC scroll hijacking window - Add .api-drawer (1100px) so content area is ~880px instead of ~540px - Replace scrollIntoView with apiDocContent.scrollBy to avoid scrolling the window and collapsing the drawer layout Co-Authored-By: Claude Sonnet 4.6 --- web/html/api-doc-drawer.html | 2 +- web/js/docs.js | 9 +++++---- web/styles.css | 4 ++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/web/html/api-doc-drawer.html b/web/html/api-doc-drawer.html index 0dbb319..c85a51a 100644 --- a/web/html/api-doc-drawer.html +++ b/web/html/api-doc-drawer.html @@ -1,5 +1,5 @@