Skip to content

feat: iframe/youtube/codepen apply 16:9 sizing in preview panel#150

Merged
wendyyuchensun merged 1 commit into
coseeing:mainfrom
wendyyuchensun:bugbash/iframe-size
Jun 29, 2026
Merged

feat: iframe/youtube/codepen apply 16:9 sizing in preview panel#150
wendyyuchensun merged 1 commit into
coseeing:mainfrom
wendyyuchensun:bugbash/iframe-size

Conversation

@wendyyuchensun

@wendyyuchensun wendyyuchensun commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Goal

設計師希望 iframe 類型內容,在 preview panel 內顯示時,可以維持寬高 16:9(aka Tailwind aspect-video)的比例,且寬不超過整個 preview 區域。

討論:
https://docs.google.com/document/d/1o80SD1jfOYbKEKcX0WodZ-PL8xgvA8Xii2GAVOXJzYc/edit?tab=t.0#heading=h.65w61zh43oa0
https://coseeing.slack.com/archives/C0AABUFUQ01/p1780557641609349?thread_ts=1779198395.123149&cid=C0AABUFUQ01

Before

寬高固定,因此 preview 區域太小時會破版

Screenshot 2026-06-22 at 10 58 47

After

Screenshot 2026-06-22 at 10 57 45

…depen

Add a general iframe component (title/source props) rendered at 100%
container width with a 16:9 aspect ratio. Apply the same responsive
sizing to custom youtube and codepen components, overriding SeeMark's
fixed-dimension defaults.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wendyyuchensun wendyyuchensun merged commit 42e6d8e into coseeing:main Jun 29, 2026
@wendyyuchensun wendyyuchensun deleted the bugbash/iframe-size branch June 29, 2026 14:01
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