Skip to content

Commit e2837e7

Browse files
fix(app-shell): a full-height console page gives the impersonation banner its height back (#37588)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuDJAbBe3iTrFcF7GZrucZ32)_ Fixes #37528 ## What changes - `ChromeBannerSlot` (`app-shell/src/layout/chromeBannerHost.tsx`): when the console's standing banners (impersonation, read rate, storage) are drawn **in place** above the routes, a `display: contents` wrapper measures them (`ResizeObserver` on each child, `MutationObserver` for banners that come and go) and publishes the summed height as `--os-chrome-banners` on the document root; cleared on unmount and while nothing is drawn. Drawn into an app layout's host (desktop, inside an app, objectstack#36112) nothing is published, as that host sits inside the content area. - The console's full-height shells take the viewport less that property, through `CONSOLE_FULL_HEIGHT` (module-local constants, literal Tailwind classes): `AppShell` in `@object-ui/layout` (height, and a `min-h-` that tailwind-merge puts in place of the sidebar wrapper's own `min-h-svh`), `StudioDesignSurface`, `HomeLayout`, `AiChatPage`, the two organization layouts, the app-unavailable / no-app screens in `AppContent`, and `StudioRoute`'s access-required screen. The property is unset outside the console and on an ordinary session, so every class there computes to the plain viewport height. - The banner keeps its place in flow (objectui#4467) and its `sticky`; nothing about where it is drawn changes. ## Why While an administrator impersonates a user, the banner sat in flow above a shell that still took `100svh` / `100vh`, so the document was taller than the window by the banner's height: list footers and bulk action bars fell below the fold and the page grew a second scrollbar. Measured on `main` (4116465) in a local console against `examples/app-crm` (`--fresh`), impersonating a seeded user, `document.documentElement.scrollHeight` against `innerHeight`: | page | 1280×768 before | 1280×768 after | 390×844 before | 390×844 after | |---|---|---|---|---| | `/home` | 768 / 768 (redirects into the app) | 768 / 768 | 921 / 844 | 844 / 844 | | an app list (`crm_lead`) | 768 / 768 (#36112 host) | 768 / 768 | 921 / 844 | 844 / 844 | | `/studio` | 821 / 768 | 768 / 768 | 921 / 844 | 844 / 844 | The first push fixed `/home` only: the sidebar wrapper's own `min-h-svh` and Studio's access-required screen still overflowed, which the second commit covers. ## Verification - New `layout/__tests__/chromeBannerHost.bannerHeight-37528.test.tsx` (5 cases: in place publishes the summed height and clears on unmount; no banner publishes nothing; a resize and a banner going away republish; drawn into the host publishes nothing; every full-height class reads the property with a `0px` fallback). With `chromeBannerHost.tsx` restored from `main`, 3 of the 5 go red (the two "nothing published" cases are controls). - `pnpm --dir ui exec vitest run` over `packages/layout/`, `packages/app-shell/src/layout/`, `src/console/__tests__/`, `src/console/home`, `src/console/ai`, `src/console/organizations`, `src/views/studio-design`, the print stylesheet pin, `apps/console/src/components` and the boot-redirect pins: all green (3,325 + 3,862 tests). `ai-surface-unavailable` in `ConsoleShell` is deliberately left on `h-screen`: `bootRedirectCoverage.test.tsx` reads that class as the full-viewport cover. - `type-check` for `@object-ui/app-shell` and `@object-ui/layout`: clean. `eslint` on the changed files: 0 errors. - The full UI suite runs in this PR's CI. - `overlap-check`: exit 0 (shares `StudioDesignSurface.tsx` with #37546 and `AiChatPage.tsx` with #37539, both merge cleanly). Clause-②: no Metadata-protocol: none ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `eslint` on the changed files passes (the full `pnpm lint` runs in CI). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [ ] The *Before Submitting* list in CONTRIBUTING.md is done. (full local suite not run; CI carries it) --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 54d6726 commit e2837e7

11 files changed

Lines changed: 219 additions & 13 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/layout': patch
4+
'@object-ui/console': patch
5+
---
6+
7+
fix(app-shell): a full-height console page gives the impersonation banner its height back
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
- While an administrator impersonates a user, the console draws its banner above the page. Where it is drawn in place (every page on a phone, and Studio, Home and the organization pages on a desktop) the page below still took the whole viewport, so the document was taller than the window by the banner's height: a list's footer and bulk action bar sat below the fold and the page gained a second scrollbar. The same held for the read-rate and storage banners beside it.
13+
- The banners drawn in place now publish their height as the CSS custom property `--os-chrome-banners` on the document root, and the console's full-height shells take the viewport less it: `AppShell` (`@object-ui/layout`, whose sidebar wrapper's own minimum height is overridden to match), Studio and its access-required screen, Home, the AI chat page, the organization layouts and the app-unavailable and no-app screens. While no banner is drawn in place, and anywhere outside the console, the property is unset and every shell keeps its viewport height. Inside an app on a desktop the banners are drawn into the content area, as before, and publish nothing.

‎ui/apps/console/src/components/StudioRoute.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function StudioAccessRequired({ home }: { home: string }) {
103103
// page, so the button says so, as the shell's other way-home buttons do.
104104
const phone = usePhoneViewport();
105105
return (
106-
<div className="flex h-screen items-center justify-center p-4">
106+
<div className="flex h-[calc(100vh-var(--os-chrome-banners,0px))] items-center justify-center p-4">
107107
<Empty data-testid="studio-access-required">
108108
<div className="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted">
109109
<Lock className="h-6 w-6 text-muted-foreground" />

‎ui/packages/app-shell/src/console/AppContent.tsx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useState, useEffect, useLayoutEffect, useCallback, useRef, lazy, Suspen
1313
import { useAssistant } from '../assistant/assistantBus.js';
1414
import { LazyModalForm } from '../views/lazyFormSurfaces.js';
1515
import { ConsoleFormOwnerLine } from '../views/consoleFormOwnerLine.js';
16-
import { Empty, EmptyTitle, EmptyDescription, Button, DataErrorState } from '@object-ui/components';
16+
import { Empty, EmptyTitle, EmptyDescription, Button, DataErrorState, cn } from '@object-ui/components';
1717
import { toast } from 'sonner';
1818
import { useActionRunner, useGlobalUndo, useMutationInvalidationBridge, notifyDataChanged, FilterScopeProvider, resolveApprovalLock, claimAnswerWarnings, toastRecordSave, type AnswerWarningClaim, type AnsweredLoadFailure, type RecordSaveFeedback } from '@object-ui/react';
1919
import { useRecordApprovals, openApprovalOf } from '../hooks/useRecordApprovals.js';
@@ -45,6 +45,7 @@ import type { NavigationItem } from '@object-ui/types';
4545

4646
// Components (eagerly loaded — always needed)
4747
import { ConsoleLayout } from '../layout/ConsoleLayout.js';
48+
import { CONSOLE_FULL_HEIGHT } from '../layout/chromeBannerHost.js';
4849
import { CommandPalette } from '../chrome/CommandPalette.js';
4950
import { ErrorBoundary } from '../chrome/ErrorBoundary.js';
5051
import { LoadingScreen } from '../chrome/LoadingScreen.js';
@@ -1318,7 +1319,7 @@ export function AppContent({ extraRoutes, extraRoutesNoApp }: AppContentProps =
13181319

13191320
// One screen for both branches that draw a `denied` verdict below.
13201321
const renderAppAccessDenied = () => (
1321-
<div className="h-screen flex items-center justify-center">
1322+
<div className={cn(CONSOLE_FULL_HEIGHT.screen, 'flex items-center justify-center')}>
13221323
<Empty data-testid="app-access-denied">
13231324
<EmptyTitle>
13241325
{t('empty.appAccessDenied', { defaultValue: "You don't have access to this app" })}
@@ -1398,7 +1399,7 @@ export function AppContent({ extraRoutes, extraRoutesNoApp }: AppContentProps =
13981399
return (
13991400
<NotFoundState
14001401
testId={verdictScreen.testId}
1401-
className="h-screen p-0"
1402+
className={cn(CONSOLE_FULL_HEIGHT.screen, 'p-0')}
14021403
title={verdictScreen.title}
14031404
description={verdictScreen.description}
14041405
actions={
@@ -1474,7 +1475,7 @@ export function AppContent({ extraRoutes, extraRoutesNoApp }: AppContentProps =
14741475
}
14751476

14761477
if (!activeApp && !isCreateAppRoute && !isSystemRoute && !isMetadataRoute) return (
1477-
<div className="h-screen flex items-center justify-center">
1478+
<div className={cn(CONSOLE_FULL_HEIGHT.screen, 'flex items-center justify-center')}>
14781479
<Empty>
14791480
<EmptyTitle>{t('empty.noAppsConfigured')}</EmptyTitle>
14801481
<EmptyDescription>

‎ui/packages/app-shell/src/console/ai/AiChatPage.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { useServedAppLabel } from '../../hooks/useServedAppLabel.js';
2121
import { toast } from 'sonner';
2222
import { Package as PackageIcon, Sparkles as SparklesIcon } from 'lucide-react';
2323
import { useAdapter } from '../../providers/AdapterProvider.js';
24+
import { CONSOLE_FULL_HEIGHT } from '../../layout/chromeBannerHost.js';
2425
import { isPlatformBuiltinApp } from '../../utils/platformApp.js';
2526
import { useMetadata } from '../../providers/MetadataProvider.js';
2627
import { formatPublishFailures, type PublishFailure } from '../../views/studio-design/metadataError.js';
@@ -1572,7 +1573,7 @@ export function AiChatPage({ apiBase: apiBaseProp, defaultAgent: defaultAgentPro
15721573
);
15731574

15741575
return (
1575-
<div className="flex h-svh w-full flex-col bg-background" data-testid="ai-chat-page">
1576+
<div className={cn('flex w-full flex-col bg-background', CONSOLE_FULL_HEIGHT.svh)} data-testid="ai-chat-page">
15761577
<header className={cn(CONSOLE_TOP_BAR, 'bg-background/95 backdrop-blur')}>
15771578
{/* Mobile: open the chats list as a sheet. The DESKTOP collapse toggle
15781579
is NOT in the top nav — it lives at the bottom-left of the chats

‎ui/packages/app-shell/src/console/home/HomeLayout.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import React, { useEffect, useMemo, useState } from 'react';
5151
import { useNavigate } from 'react-router-dom';
5252
import { cn } from '@object-ui/components';
5353
import { useNavigationContext } from '../../context/NavigationContext.js';
54+
import { CONSOLE_FULL_HEIGHT } from '../../layout/chromeBannerHost.js';
5455
import { CommandPaletteProvider, useCommandPalette } from '../../context/CommandPaletteProvider.js';
5556
import { CommandPalette } from '../../chrome/CommandPalette.js';
5657
import { AppHeader } from '../../layout/AppHeader.js';
@@ -182,7 +183,7 @@ export function HomeLayout({ children, variant = 'home' }: HomeLayoutProps) {
182183
{/* With the drawer's rail open the page is bounded to the window, so the
183184
rail spans it and the page scrolls in its own box beside it. */}
184185
<div
185-
className={cn('flex w-full flex-col bg-background', chatDock.rail ? 'h-svh' : 'min-h-svh')}
186+
className={cn('flex w-full flex-col bg-background', chatDock.rail ? CONSOLE_FULL_HEIGHT.svh : CONSOLE_FULL_HEIGHT.minSvh)}
186187
data-testid="home-layout"
187188
>
188189
{/* The provider wraps the bar and the palette only: the page below

‎ui/packages/app-shell/src/console/organizations/OrganizationsLayout.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import React, { useEffect } from 'react';
1212
import { useNavigationContext } from '../../context/NavigationContext.js';
1313
import { AppHeader } from '../../layout/AppHeader.js';
1414
import { CONSOLE_TOP_BAR } from '../../layout/consoleTopBar.js';
15+
import { CONSOLE_FULL_HEIGHT } from '../../layout/chromeBannerHost.js';
1516

1617
interface OrganizationsLayoutProps {
1718
children: React.ReactNode;
@@ -25,7 +26,7 @@ export function OrganizationsLayout({ children }: OrganizationsLayoutProps) {
2526
}, [setContext]);
2627

2728
return (
28-
<div className="flex min-h-svh w-full flex-col bg-background" data-testid="organizations-layout">
29+
<div className={`flex ${CONSOLE_FULL_HEIGHT.minSvh} w-full flex-col bg-background`} data-testid="organizations-layout">
2930
<header className={CONSOLE_TOP_BAR}>
3031
<AppHeader variant="orgs" />
3132
</header>

‎ui/packages/app-shell/src/console/organizations/manage/OrganizationLayout.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { Button } from '@object-ui/components';
1515
import { useNavigationContext } from '../../../context/NavigationContext.js';
1616
import { AppHeader } from '../../../layout/AppHeader.js';
1717
import { CONSOLE_TOP_BAR } from '../../../layout/consoleTopBar.js';
18+
import { CONSOLE_FULL_HEIGHT } from '../../../layout/chromeBannerHost.js';
1819

1920
export function OrganizationLayout() {
2021
const { t } = useObjectTranslation();
@@ -79,7 +80,7 @@ export function OrganizationLayout() {
7980
];
8081

8182
return (
82-
<div className="flex min-h-svh w-full flex-col bg-background" data-testid="organization-layout">
83+
<div className={`flex ${CONSOLE_FULL_HEIGHT.minSvh} w-full flex-col bg-background`} data-testid="organization-layout">
8384
<header className={CONSOLE_TOP_BAR}>
8485
<AppHeader variant="orgs" />
8586
</header>
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* The banners drawn in place, above the console's routes, publish their
5+
* height as `--os-chrome-banners` so a full-height page can give it back
6+
* (objectstack#37528). Drawn into an app layout's host they publish nothing:
7+
* the host sits inside the content area the page already sizes.
8+
*/
9+
import { describe, it, expect, afterEach, beforeEach, vi } from 'vitest';
10+
import { render, cleanup, act } from '@testing-library/react';
11+
import * as React from 'react';
12+
import {
13+
CHROME_BANNERS_HEIGHT_VAR,
14+
CONSOLE_FULL_HEIGHT,
15+
ChromeBannerHost,
16+
ChromeBannerSlot,
17+
} from '../chromeBannerHost';
18+
19+
const observers: Array<{ callback: () => void }> = [];
20+
21+
class FakeResizeObserver {
22+
callback: () => void;
23+
constructor(callback: () => void) {
24+
this.callback = callback;
25+
observers.push(this);
26+
}
27+
observe() {}
28+
unobserve() {}
29+
disconnect() {}
30+
}
31+
32+
/** Every element with `data-h` reports that many pixels of height. */
33+
function stubHeights() {
34+
return vi.spyOn(HTMLElement.prototype, 'getBoundingClientRect').mockImplementation(function (this: HTMLElement) {
35+
const height = Number(this.getAttribute('data-h') ?? 0);
36+
return { height, width: 0, top: 0, left: 0, right: 0, bottom: height, x: 0, y: 0, toJSON: () => ({}) } as DOMRect;
37+
});
38+
}
39+
40+
const published = () => document.documentElement.style.getPropertyValue(CHROME_BANNERS_HEIGHT_VAR);
41+
42+
beforeEach(() => {
43+
observers.length = 0;
44+
vi.stubGlobal('ResizeObserver', FakeResizeObserver);
45+
document.documentElement.style.removeProperty(CHROME_BANNERS_HEIGHT_VAR);
46+
});
47+
48+
afterEach(() => {
49+
cleanup();
50+
vi.unstubAllGlobals();
51+
vi.restoreAllMocks();
52+
});
53+
54+
describe('ChromeBannerSlot — the in-place banners publish their height (objectstack#37528)', () => {
55+
it('in place: the summed height of the drawn banners, cleared on unmount', () => {
56+
stubHeights();
57+
const { unmount } = render(
58+
<ChromeBannerSlot>
59+
<div data-h="53">impersonating</div>
60+
<div data-h="24">read rate</div>
61+
</ChromeBannerSlot>,
62+
);
63+
expect(published()).toBe('77px');
64+
65+
unmount();
66+
expect(published(), 'nothing drawn, nothing given back').toBe('');
67+
});
68+
69+
it('in place with no banner drawn (an ordinary session): nothing is published', () => {
70+
stubHeights();
71+
render(<ChromeBannerSlot>{null}</ChromeBannerSlot>);
72+
expect(published()).toBe('');
73+
});
74+
75+
it('follows a banner that grows (it wraps on a narrow screen) or goes away', () => {
76+
stubHeights();
77+
const Banners = ({ show, height }: { show: boolean; height: number }) => (
78+
<ChromeBannerSlot>{show ? <div data-h={String(height)}>impersonating</div> : null}</ChromeBannerSlot>
79+
);
80+
const { rerender, container } = render(<Banners show height={41} />);
81+
expect(published()).toBe('41px');
82+
83+
container.querySelector('[data-h]')!.setAttribute('data-h', '77');
84+
act(() => observers.forEach((o) => o.callback()));
85+
expect(published(), 'a resize republishes').toBe('77px');
86+
87+
rerender(<Banners show={false} height={77} />);
88+
act(() => observers.forEach((o) => o.callback()));
89+
expect(published(), 'the banner ended').toBe('');
90+
});
91+
92+
it("drawn into an app layout's host: nothing is published", () => {
93+
stubHeights();
94+
render(
95+
<>
96+
<ChromeBannerHost />
97+
<ChromeBannerSlot>
98+
<div data-h="53">impersonating</div>
99+
</ChromeBannerSlot>
100+
</>,
101+
);
102+
expect(document.querySelector('[data-testid="console-chrome-banners"]')?.textContent).toContain('impersonating');
103+
expect(published()).toBe('');
104+
});
105+
106+
it('the full-height classes take the viewport less the published height, 0 when unset', () => {
107+
for (const cls of Object.values(CONSOLE_FULL_HEIGHT)) {
108+
expect(cls).toContain(`var(${CHROME_BANNERS_HEIGHT_VAR},0px)`);
109+
}
110+
});
111+
});

‎ui/packages/app-shell/src/layout/chromeBannerHost.tsx‎

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,81 @@ export function ChromeBannerHost() {
5353
return <div ref={ref} data-testid="console-chrome-banners" className="contents" />;
5454
}
5555

56-
/** Draws `children` into the app layout's host when one is mounted, in place otherwise. */
56+
/**
57+
* The CSS custom property that carries the height of the banners drawn in
58+
* place, above the console's routes: `0px` (unset) while none is drawn there.
59+
*/
60+
export const CHROME_BANNERS_HEIGHT_VAR = '--os-chrome-banners';
61+
62+
/**
63+
* Full-height classes that give the banners drawn in place their height back
64+
* (objectstack#37528). A banner in place is in flow above the page, so a page
65+
* that takes the whole viewport would be taller than the window by the
66+
* banner's height. Outside the console, or while no banner is drawn in place,
67+
* the property is unset and these are the plain viewport heights.
68+
*
69+
* Literal strings, so Tailwind's scan sees every class.
70+
*/
71+
export const CONSOLE_FULL_HEIGHT = {
72+
/** `h-screen` less the banners. */
73+
screen: 'h-[calc(100vh-var(--os-chrome-banners,0px))]',
74+
/** `h-svh` less the banners. */
75+
svh: 'h-[calc(100svh-var(--os-chrome-banners,0px))]',
76+
/** `min-h-svh` less the banners. */
77+
minSvh: 'min-h-[calc(100svh-var(--os-chrome-banners,0px))]',
78+
} as const;
79+
80+
/**
81+
* Publishes the summed height of `wrapper`'s children as
82+
* {@link CHROME_BANNERS_HEIGHT_VAR} on the document root, and clears it on
83+
* unmount. The wrapper is `display: contents`, so the banners keep their own
84+
* boxes (and the impersonation banner its `sticky`); each child is measured.
85+
*/
86+
function usePublishedBannerHeight(wrapper: React.RefObject<HTMLDivElement | null>) {
87+
React.useLayoutEffect(() => {
88+
const el = wrapper.current;
89+
if (!el || typeof ResizeObserver === 'undefined') return undefined;
90+
const root = document.documentElement;
91+
const publish = () => {
92+
let height = 0;
93+
for (const child of Array.from(el.children)) height += child.getBoundingClientRect().height;
94+
if (height > 0) root.style.setProperty(CHROME_BANNERS_HEIGHT_VAR, `${height}px`);
95+
else root.style.removeProperty(CHROME_BANNERS_HEIGHT_VAR);
96+
};
97+
const sizes = new ResizeObserver(publish);
98+
const observeChildren = () => {
99+
sizes.disconnect();
100+
for (const child of Array.from(el.children)) sizes.observe(child);
101+
publish();
102+
};
103+
const children = typeof MutationObserver === 'undefined' ? null : new MutationObserver(observeChildren);
104+
children?.observe(el, { childList: true });
105+
observeChildren();
106+
return () => {
107+
sizes.disconnect();
108+
children?.disconnect();
109+
root.style.removeProperty(CHROME_BANNERS_HEIGHT_VAR);
110+
};
111+
}, [wrapper]);
112+
}
113+
114+
function InPlaceBanners({ children }: { children: React.ReactNode }) {
115+
const wrapper = React.useRef<HTMLDivElement | null>(null);
116+
usePublishedBannerHeight(wrapper);
117+
return (
118+
<div ref={wrapper} className="contents" data-testid="console-chrome-banners-inline">
119+
{children}
120+
</div>
121+
);
122+
}
123+
124+
/**
125+
* Draws `children` into the app layout's host when one is mounted, in place
126+
* otherwise. In place, their height is published for the full-height pages
127+
* below them ({@link CONSOLE_FULL_HEIGHT}); in the host it is not, since the
128+
* host sits inside the content area the page already sizes.
129+
*/
57130
export function ChromeBannerSlot({ children }: { children: React.ReactNode }) {
58131
const target = useChromeBannerHost();
59-
return target ? createPortal(children, target) : <>{children}</>;
132+
return target ? createPortal(children, target) : <InPlaceBanners>{children}</InPlaceBanners>;
60133
}

‎ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { canonicalMetaUrlType } from '@objectstack/spec/shared';
3131
import { resolveI18nLabel, type I18nLabel } from '@objectstack/spec/ui';
3232
import { StudioChatDock, type StudioCopilotStatus, type StudioSurfaceLabel } from './StudioAiCopilot.js';
3333
import { StudioRightSlot } from './StudioRightSlot.js';
34+
import { CONSOLE_FULL_HEIGHT } from '../../layout/chromeBannerHost.js';
3435
import { StudioTitleRowProvider } from './studioTitleRow.js';
3536
import { useStudioAccentOnBody } from './studioAccent.js';
3637
import { AssistantTopBarButton } from '../../layout/AssistantTopBarButton.js';
@@ -1351,7 +1352,7 @@ function StudioDesignSurfaceBody({ aiSlot, area }: StudioDesignSurfaceProps): Re
13511352
sidebar's, under Studio's own collapse cookie (`StudioMenu.tsx`). */}
13521353
{/* objectstack#37455 — Studio's graphite on its root: nothing Studio
13531354
draws takes the app's theme colour (decision 4 of #37424). */}
1354-
<StudioMenuProvider className={cn('h-screen min-h-0 overflow-hidden bg-background text-foreground', STUDIO_ACCENT)}>
1355+
<StudioMenuProvider className={cn(CONSOLE_FULL_HEIGHT.screen, 'min-h-0 overflow-hidden bg-background text-foreground', STUDIO_ACCENT)}>
13551356
{/* The ADR-0080 `aiSlot` seam — a cloud edition may still inject its own
13561357
* left copilot panel; the built-in copilot is the RIGHT dock below. */}
13571358
{/* objectstack#32615 — not beside a package that is not there. */}

0 commit comments

Comments
 (0)