Skip to content

iframe zoom#116

Merged
MarcSkovMadsen merged 1 commit into
mainfrom
enhancement/iframe-zoom
Jan 24, 2026
Merged

iframe zoom#116
MarcSkovMadsen merged 1 commit into
mainfrom
enhancement/iframe-zoom

Conversation

@MarcSkovMadsen

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 24, 2026 06:17
@MarcSkovMadsen MarcSkovMadsen merged commit 625227b into main Jan 24, 2026
8 of 14 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the feed page’s embedded visualization iframe markup to support a zoomed display and additional iframe permissions.

Changes:

  • Converts the iframe HTML from a single-line tag to a multi-line block for readability.
  • Adds CSS zoom: 0.80 to scale iframe content.
  • Adds an iframe allow permissions policy (fullscreen, clipboard-write, autoplay).

<iframe src="{url}" style="height: 100%; width: 100%; border: none;" frameborder="0"></iframe>
<iframe
src="{url}"
style="height: 100%; width: 100%; border: none;zoom:0.80"

Copilot AI Jan 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zoom is a non-standard CSS property and won’t work in some browsers (notably Firefox), so the iframe scaling will be inconsistent. Consider using a standards-based approach (e.g., CSS transform: scale(...) with transform-origin and compensating width/height) or applying scaling at the content level instead of relying on zoom.

Suggested change
style="height: 100%; width: 100%; border: none;zoom:0.80"
style="height: calc(100% / 0.8); width: calc(100% / 0.8); border: none; transform: scale(0.8); transform-origin: 0 0;"

Copilot uses AI. Check for mistakes.
src="{url}"
style="height: 100%; width: 100%; border: none;zoom:0.80"
frameborder="0"
allow="fullscreen; clipboard-write; autoplay"

Copilot AI Jan 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new iframe allow list grants clipboard-write and autoplay, which expands what embedded apps can do in the browser. If the snippet content is user-provided, it’s safer to keep this list minimal (e.g., only enable fullscreen if that’s the goal). Also, if fullscreen support is required across browsers, consider adding the boolean allowfullscreen attribute (some browsers rely on it even when allow="fullscreen" is present).

Suggested change
allow="fullscreen; clipboard-write; autoplay"
allow="fullscreen"
allowfullscreen

Copilot uses AI. Check for mistakes.
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.

2 participants