upcoming-media-card
upcoming-media-card copied to clipboard
Add fanart_height option
The fanart_height option applies when image_style is fanart and adjusts the height of each entry on the cards. The start and mid points for the gradients are determined automatically based on the adjusted width of the fan art.
If you have multiple cards with different heights the gradients get messed up, but as this is an existing issue for other styles I thought it might be ok. I don't know enough about JS/Lovelace/CSS to fix that.
Me for, this does not work. Running Home Assistant 0.105.1. I have the following configuration:
cards:
- # Custom Layout Card
# https://github.com/thomasloven/lovelace-layout-card
type: custom:layout-card
layout: horizontal
min_columns: 1
max_columns: 3
column_width: 350px
cards:
- # Trakt
type: custom:upcoming-media-card
entity: sensor.anstehende_serien
title: Serien (heute)
clock: 24
image_style: fanart
max: 15
text_shadows: true
box_shadows: false
title_size: medium
fanart_height: 100
line_size: small
accent_color: transparent
border_color: transparent
Looking like this:
I would love the e.g. Vikings fanart to have the following height:
Anything I might have configured poorly that comes to mind? I have the feeling that
"line3_default": "" "line4_default": ""
kind of reserve the empty space?
@hjbotha my apologies for the very late response. It looks like the code has changed significantly since you made this PR 5 years ago. If you still want to see this feature, I can try to add it on my own.
Hey, unfortunately i cannot test the card right now because the trakt component seems to have issues that make it unable to setup. Looks fine though from the screenshot on Github, go for it. BestVom Handy gesendet.Am 01.02.2024 um 23:30 schrieb MKANET @.***>: @hjbotha @WongGendheng I am about make a very big update to upcoming-media-card.js. I fixed a few bugs. However, the most notable change I'm not sure is a good idea or not... I changed the default to use transparency+mild backdrop-filter effect instead of the original dark fully-opaque effect. Currently, it can be disabled with disable_transparency: true in the card settings. Can you guys please see if my changes are acceptable as the new default or I should only make transparency as optional? https://github.com/mkanet/upcoming-media-card/blob/master/upcoming-media-card.js If I don't hear back from you guys, I'll assume these changes are acceptable "as is". Thanks in advance.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>