docs: work around browser bug with input+scrolling (#3209)

thanks for flagging @TodePond! 

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `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

<!--  Please select a 'Type' label ️ -->

- [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
This commit is contained in:
Mime Čuvalo 2024-03-19 12:35:15 +00:00 committed by GitHub
parent 4c5c3daa51
commit 37870b6e73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {