tldraw/apps
Lu Wilson fdadaf6044
Style UI based on component size instead of window size (#2758)
Previously, our UI changed appearance based on your browser's **window
size**.
This PR makes it change appearance based on tldraw's **component size**
instead.

It makes the UI behave as we intend in small inline components.
See the **Inline component** example for a comparison of different
screen sizes.
See code comments for more info.

### Change Type

- [x] `patch` — Bug fix

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

### Test Plan

1. Open the inline component example.
2. Gradually change the width of the browser window.
3. The UI of the components shouldn't change when you do this. 

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Dev: Fixed the default tldraw UI not matching the size of the
component.
2024-02-08 10:50:10 +00:00
..
docs Unbiome (#2776) 2024-02-07 16:02:22 +00:00
dotcom Unbiome (#2776) 2024-02-07 16:02:22 +00:00
dotcom-asset-upload dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
dotcom-bookmark-extractor Bump Yarn to 4.0.2 and add version constraints (#2481) 2024-01-18 11:09:17 +00:00
dotcom-worker Unbiome (#2776) 2024-02-07 16:02:22 +00:00
examples Style UI based on component size instead of window size (#2758) 2024-02-08 10:50:10 +00:00
health-worker Update the project to Node 20 (#2691) 2024-01-31 16:53:40 +00:00
huppy make CI check for yarn install warnings and fix the peer deps ones we have (#2683) 2024-01-30 11:41:46 +00:00
vscode VS Code 2.0.23 (#2756) 2024-02-06 15:41:44 +00:00