Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: revert theme render flicker (breakpoints) #1055

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

luwes
Copy link
Collaborator

@luwes luwes commented Jan 22, 2025

related #960

from feedback via next-video we heard there is a split second empty flicker now when using a slotted poster image.
first the blurhash appears, after the thumbnail then nothing (seeing background of page), then the poster and player UI.

the reason is that the theme visibility is hidden until the breakpoints are available.
after reconsideration this solution doesn't feel like the correct way to handle this.

better is to be more precise in the theme itself and require breakpoints to render any control variants.
this will require some changes in some themes where we don't default to the smallest size variant for example but still require a small breakpoint width. could be even zero.

@luwes luwes self-assigned this Jan 22, 2025
@luwes luwes requested review from heff and a team as code owners January 22, 2025 22:34
Copy link

vercel bot commented Jan 22, 2025

@luwes is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
media-chrome ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 11:42pm
media-chrome-demo-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 11:42pm
media-chrome-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 11:42pm

Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.48%. Comparing base (3ea80df) to head (2b00da2).
Report is 143 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1055      +/-   ##
==========================================
- Coverage   78.55%   77.48%   -1.07%     
==========================================
  Files          59       51       -8     
  Lines       11080    12313    +1233     
  Branches        0      722     +722     
==========================================
+ Hits         8704     9541     +837     
- Misses       2376     2744     +368     
- Partials        0       28      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@luwes luwes merged commit 1b8dad5 into muxinc:main Jan 22, 2025
5 of 8 checks passed
@luwes luwes deleted the theme-visibility branch January 22, 2025 23:44
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