tldraw/packages
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
..
assets i18n: add HR 🇭🇷 (#2778) 2024-02-07 16:27:27 +00:00
editor error reporting: rm ids from msgs for better Sentry grouping (#2738) 2024-02-07 16:30:46 +00:00
state Unbiome (#2776) 2024-02-07 16:02:22 +00:00
store Unbiome (#2776) 2024-02-07 16:02:22 +00:00
tldraw Style UI based on component size instead of window size (#2758) 2024-02-08 10:50:10 +00:00
tlschema i18n: add HR 🇭🇷 (#2778) 2024-02-07 16:27:27 +00:00
tlsync [dotcom] TLSyncRoom tidy (#2712) 2024-02-05 17:25:07 +00:00
utils Unbiome (#2776) 2024-02-07 16:02:22 +00:00
validate error reporting: rm ids from msgs for better Sentry grouping (#2738) 2024-02-07 16:30:46 +00:00