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 Thumb rendering without thumbnails #264

Merged
merged 1 commit into from Apr 23, 2019
Merged

Fix Thumb rendering without thumbnails #264

merged 1 commit into from Apr 23, 2019

Conversation

DrPandemic
Copy link
Contributor

Changes
The initial problem was occurring when rendering a page in Thumb (options.cardLayout = false) mode and the media didn't have a thumbnail (forceName = true). In this specific situation, it would try to render the title in the innerCardFooter rather than in the outerCardFooter. Those footers would render the title in a <button>, but the innerCardFooter was already rendered in a <button>. This double <button> was breaking the browser's HTML renderers.

This fix prevents the usage of innerCardFooter and fallbacks to outerCardFooter.

Before:
image

After (you can see it also fixed the title positioning):
image

Issues
Closes #228

@DrPandemic DrPandemic changed the title Prevent the rendering of a specific button inside a button Fix Thumb rendering without thumbnails Apr 22, 2019
Copy link
Member

@cvium cvium left a comment

Choose a reason for hiding this comment

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

LGTM assuming it doesn't break cards in other pages

@DrPandemic
Copy link
Contributor Author

I didn't every possible combinations, but for the one I tried, they seemed to be working well.

@Bond-009 Bond-009 merged commit 0a5f08e into jellyfin:master Apr 23, 2019
@DrPandemic DrPandemic deleted the fix-movie-icons branch April 23, 2019 21:34
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.

Click on Layout format goes to movie details and does not change the layout
4 participants