Enable responsive width growing in basic-host

Change onsizechange handler to use min-width instead of width,
treating the app's reported size as a floor rather than exact.
Use min(Xpx, 100%) to allow shrinking with container.

Also remove outmost max-width constraint and simplify iframe CSS to
allow apps to demonstrate responsive growing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jonathan Hefner 2025-12-08 10:29:00 -06:00
commit 5e96fcc87f

View file

@ -69,7 +69,6 @@
.toolCallInfoPanel {
display: flex;
gap: 1rem;
max-width: 1120px;
animation: slideDown 0.3s ease-out;
}
@ -107,13 +106,10 @@
}
.appIframePanel {
display: flex;
justify-content: center;
width: 100%;
min-height: 200px;
iframe {
flex: 1 0 auto;
width: 100%;
height: 600px;
box-sizing: border-box;
border: 3px dashed #888;