Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/native-safe-area-insets.md

This file was deleted.

11 changes: 11 additions & 0 deletions docs/components/ChangelogContent.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 2026.11.23

Read safe area insets from the `--native-safe-area-inset-*` CSS variables first, falling back to `env(safe-area-inset-*)` when they are not defined. A host app that injects these variables on the root element before the first render, and updates them whenever the insets change, no longer causes a layout shift in `AppScreen`, `AppBar`, `Modal`, and `BottomSheet`. [`1f88aab`](https://github.com/daangn/stackflow/commit/1f88aabd7913edacf5744ea54148255ee7710906)

If your host app injects these variables and you set `appBar.minSafeAreaInsetTop` or its CSS variable to a cached inset to avoid that layout shift, remove the override. `AppBar` uses the larger of the two, so a stale cached value still wins over the native variable. Without the native variables, `env()` can still be `0px` on the first render, so a cached override still prevents the shift there.

Released packages:
- 📦 [@stackflow/plugin-basic-ui@1.20.0](https://npmjs.com/package/@stackflow/plugin-basic-ui/v/1.20.0)

---

## 2026.10.27

Center Modal within the safe area while preserving its margins and full-screen backdrop. Add left, right, and bottom safe area padding to BottomSheet content while keeping its background full-width and bottom-aligned. Remove any duplicate safe area adjustments from children when upgrading. [`1f595cc`](https://github.com/daangn/stackflow/commit/1f595cc64136e7ace422b0e481cbff188db7ea4c)
Expand Down
8 changes: 8 additions & 0 deletions extensions/plugin-basic-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @stackflow/plugin-basic-ui

## 1.20.0

### Minor Changes

- 1f88aab: Read safe area insets from the `--native-safe-area-inset-*` CSS variables first, falling back to `env(safe-area-inset-*)` when they are not defined. A host app that injects these variables on the root element before the first render, and updates them whenever the insets change, no longer causes a layout shift in `AppScreen`, `AppBar`, `Modal`, and `BottomSheet`.

If your host app injects these variables and you set `appBar.minSafeAreaInsetTop` or its CSS variable to a cached inset to avoid that layout shift, remove the override. `AppBar` uses the larger of the two, so a stale cached value still wins over the native variable. Without the native variables, `env()` can still be `0px` on the first render, so a cached override still prevents the shift there.

## 1.19.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion extensions/plugin-basic-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackflow/plugin-basic-ui",
"version": "1.19.2",
"version": "1.20.0",
"repository": {
"type": "git",
"url": "https://github.com/daangn/stackflow.git",
Expand Down
Loading