-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Media Browser: Use Media Class #6904
Conversation
class="children ${classMap({ | ||
portrait: mediaClass.thumbnail_ratio === "portrait", | ||
})}" | ||
> | ||
${currentItem.children.map( | ||
(child) => html` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(child) => html` | |
(child) => { const classStyles = MediaClassBrowserSettings[child.media_class]; return html` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you are going for here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no per child classes needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You keep looking up the MediaClassBrowserSettings
, do it once and store in a var.
Need to fix safari rendering in this PR as well |
Also I should fix this #6946 |
Going to fix this too #6949 EZ fix |
@bramkragten I cant figure out the damn safari bug right now. Also, its late and Friday. and beers so |
Proposed change
Type of change
Additional information
Checklist