Skip to content

fix(apps): frame overlays fill their item instead of 300 × 150 - #96

Open
mattspieg wants to merge 1 commit into
flowtricks:mainfrom
mattspieg:fix/app-overlay-frame-size
Open

mattspieg wants to merge 1 commit into
flowtricks:mainfrom
mattspieg:fix/app-overlay-frame-size

Conversation

@mattspieg

Copy link
Copy Markdown

Problem

An app's frame overlay item renders at the browser's default iframe size of 300 × 150, wherever its .app-overlay-item is and however big it is. .app-overlay-frame sets position: absolute but no inset or size, so the iframe never fills its item. Seen in 1.4.13 through 1.4.15.

Fix

.app-overlay-frame now sets inset: 0; width: 100%; height: 100%, so the frame fills its item. .app-overlay-item is already position: absolute, so it's the frame's containing block. The change is CSS only, in src/features/apps/apps.css.

To check

  1. Load an app that posts an overlay item of type frame with a rectangle larger than 300 × 150.
  2. Before the change, the frame stays at 300 × 150 in the item's top-left corner. After it, the frame fills the item.

Related, not fixed here

When an overlay item changes, its existing frame is kept rather than reloaded, unlike what the Apps guide describes. Apps can work around this with a message handshake, so this PR leaves it alone.

🤖 Generated with Claude Code

.app-overlay-frame had a position but no size, so an app's frame overlay
rendered at the browser's default iframe size and never filled
.app-overlay-item.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant