diff --git a/packages/app/src/runtime/plugin/side-region.tsx b/packages/app/src/runtime/plugin/side-region.tsx index 72147e552d3..f64de7fa5f7 100644 --- a/packages/app/src/runtime/plugin/side-region.tsx +++ b/packages/app/src/runtime/plugin/side-region.tsx @@ -53,6 +53,12 @@ export function SideRegion(props: { sidebar: PanelSidebar present?: boolean size: Sizing + /** + * The width the contents keep, the side region's open width, which a close keeps as the far end of its travel. Set + * on the content box alone: an inherited custom property on an ancestor restyled every element in the region, the + * review's diffs included, on every frame of a resize drag. + */ + contentWidth: Accessor drag: PaneDrag }) { const layout = useLayout() @@ -122,7 +128,7 @@ export function SideRegion(props: {
@@ -544,6 +543,7 @@ function SessionScreenContent(props: { sidebar={sidebar} present={sideMotion.present()} size={screen.size} + contentWidth={screen.side.contentWidth} drag={drag} />