From 37870b6e73324bc1f6ec343b4a45f6155f8b429c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mime=20=C4=8Cuvalo?= Date: Tue, 19 Mar 2024 12:35:15 +0000 Subject: [PATCH] docs: work around browser bug with input+scrolling (#3209) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thanks for flagging @TodePond! ### Change Type - [ ] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [x] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff - [x] `bugfix` — Bug fix - [ ] `feature` — New feature - [ ] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know --- apps/docs/styles/globals.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/docs/styles/globals.css b/apps/docs/styles/globals.css index fd3f99cee..c00e4d5b6 100644 --- a/apps/docs/styles/globals.css +++ b/apps/docs/styles/globals.css @@ -98,7 +98,12 @@ html { background-color: #000; border-bottom: none; - scroll-padding-top: calc(var(--header-height) + var(--header-padding)); + /* + * XXX: this was hitting a browser bug on Blink: https://issues.chromium.org/issues/40749247 + * Typing into the search bar was causing the page to scroll as you typed. + * We don't need this for now anyway since we don't have subheader navigation anymore. + */ + /* scroll-padding-top: calc(var(--header-height) + var(--header-padding)); */ } body {