Skip to content

fix: keep image lightbox off video embed posters - #862

Merged
dannyneira merged 1 commit into
mainfrom
fix/lightbox-skip-video-posters
Oct 7, 2026
Merged

dannyneira merged 1 commit into
mainfrom
fix/lightbox-skip-video-posters

Conversation

@dannyneira

@dannyneira dannyneira commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Stops the article image lightbox from intercepting VideoEmbed YouTube poster clicks. Clicking play on pages like /factories/ was expanding the poster image over the page while the video autoplayed underneath.

Changes

  • src/components/ArticleImageLightbox.astro — exclude images inside .video-embed from lightbox enhancement
  • src/components/VideoEmbed.astro — mark poster images with data-no-lightbox
  • src/styles/custom.css — note the VideoEmbed exclusion in the lightbox comment

How to test

  1. Open the Vercel preview for /factories/
  2. Click the video play control on the hero embed
  3. Confirm the video plays inline and no image lightbox covers the page
  4. Spot-check a normal docs screenshot still expands in the lightbox

Testing

Tested video embeds (both YouTube and Looms) in the following pages:

• /factories/
• /guides/getting-started/welcome-to-warp/
• /code/code-review
• /agents/local-agents/generate
• /agents/capabilities/skills
• /platform/viewing-cloud-agent-runs
• /knowledge-and-collaboration/warp-drive/workflows
• /agents/local-agents/session-sharing

Co-Authored-By: Warp agent@warp.dev

YouTube click-to-play posters live in article content, so the image
lightbox was treating them as expandable images. Clicking play opened
the lightbox over the autoplaying iframe. Skip .video-embed images and
mark posters with data-no-lightbox.

Co-Authored-By: Warp <agent@warp.dev>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Oct 7, 2026 7:18pm UTC

Request Review

@dannyneira
dannyneira requested a review from hongyi-chen October 7, 2026 19:15
@cla-bot cla-bot Bot added the cla-signed label Oct 7, 2026
@dannyneira
dannyneira requested a review from rachaelrenk October 7, 2026 19:15
@warp-for-oss

warp-for-oss Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

@dannyneira

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss warp-for-oss Bot 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.

Overview

This PR prevents the article image lightbox from enhancing YouTube video poster images while preserving normal article image lightbox behavior. The changed comments are targeted and accurate, no tests are changed, and the security/spec passes found no issues.

Concerns

  • No blocking concerns found.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@dannyneira
dannyneira merged commit 8838396 into main Oct 7, 2026
21 checks passed
@dannyneira
dannyneira deleted the fix/lightbox-skip-video-posters branch October 7, 2026 21:41

This branch was successfully deployed

1 active deployment
Preview — 162b4b45 Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants