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
3 changes: 2 additions & 1 deletion apps/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
margin: 0 auto;
padding: var(--bb-grid-size-6) var(--bb-grid-size-3);
}
#app.is-home {
#app.is-home,
#app.is-html {
max-width: none;
margin: 0;
padding: 0;
Expand Down
7 changes: 7 additions & 0 deletions apps/web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,13 @@ class AgentUIApp extends SignalWatcher(LitElement) {
// HTML pages are pre-sanitized server-side. We trust the byte-string
// and wrap it in a sandboxed iframe. The iframe is opaque-origin and
// JS-free; nothing it does can reach back into this shell.
//
// The shell's #app container has a 640px max-width cap (set in
// index.html for A2UI/landing layouts). HTML pages are meant to fill
// the full viewport like a normal webpage, so we flip the `is-html`
// class on #app to clear the cap — same escape hatch the home page
// uses via `is-home`.
document.getElementById('app')?.classList.add('is-html');
this.htmlBody = typeof page.spec === 'string' ? page.spec : '';
this.status = 'live';
return;
Expand Down
Loading