Tldraw/apps/docs
Lu Wilson 0c046a561b
[docs] Allow sidebar to be scrolled on short screens (#1632)
This PR changes how the sidebar works on the docs site.

## What's the problem?
Previously, you couldn't reach the bottom of the sidebar on some screens
- unless you scroll to the very bottom of the main content. Some of our
pages are [very
long](https://canary.tldraw.dev/gen/editor/Editor-class), so this isn't
practical.

![2023-06-22 at 11 25 26 - Violet
Gazelle](https://github.com/tldraw/tldraw/assets/15892272/873ffa98-5eea-48b4-a005-c3aa89074065)

## How are we fixing it?
This PR makes the sidebar scroll separately from the main content.
It's less fancy and less pretty :/ 
But it's usable.

Maybe we could make it sleeker somehow, but this works at least.

![2023-06-22 at 11 27 29 - Rose
Hedgehog](https://github.com/tldraw/tldraw/assets/15892272/99bd47b9-d07c-46ff-b1bb-de0ac289d294)

## Admin

### Change Type

- [x] `documentation` — Changes to the documentation only[^2]

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. On the docs site, make your browser window short so that you can't
see the whole sidebar.
2. Make sure that you can scroll down to the bottom on the sidebar,
separately from the rest of the page.

### Release Notes

- Documentation: Fixed the sidebar being unscrollable on some short
screens.
2023-06-23 09:59:57 +00:00
..
components [docs] Add feedback when you search (#1633) 2023-06-23 09:57:57 +00:00
content [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
pages [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
public [docs] editor API (#1328) 2023-05-07 19:10:59 +01:00
scripts Auto content refresh for docs site (#1606) 2023-06-17 09:46:46 +00:00
styles [docs] Allow sidebar to be scrolled on short screens (#1632) 2023-06-23 09:59:57 +00:00
types Auto content refresh for docs site (#1606) 2023-06-17 09:46:46 +00:00
utils [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
.eslintrc.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.gitignore Auto content refresh for docs site (#1606) 2023-06-17 09:46:46 +00:00
CHANGELOG.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
LICENSE readmes 2023-05-04 13:47:56 +01:00
README.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
content.d.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
next.config.js [docs] Separate some pages out of the Docs section (#1626) 2023-06-23 09:53:22 +00:00
package.json Revert "Update dependencies (#1613)" (#1617) 2023-06-19 09:49:44 +00:00
tsconfig.content.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00

README.md

tldraw-docs

tldraw