Iām trying to add simple drop-shadow effect globally to all my Home Assistant cards via my custom theme file. For some reason, when I append ha-card { box-shadow: 0px 5px 15px rgba(255,255,255,0.3) !important; } to my card-mode code below, it has no visible effect. However, the other card-mod modifications work just fine.
Youāre right, your example worked. But how is it that you can ignore the shadow root thatās under the clock-weather-card element? Iām new to using the card mod and this part is rather confusing.
I have a grid card that contains two bus time table entities cards, which are misbehaving a bit.
Iām trying to set the entities cards to a fixed height so that they donāt dynamically change height based on the number of times shown. Essentially I want the card to stay the same size, but the times should wrap onto a second column if they overflow. How can I achieve this?
Currently it looks like this if there are only a few times available. Note that the grid card is only holding the bus times, the temperature card is only shown for context.
Can you double-check your quotings? Either have no quoting or the quote you are referring to. I doubt that your answer was for me and the text you have quoted. Same in your answer/post before.
the bus timetable cards should always remain the same height as the weather card next to them
if the number of departures increase beyond the height of the card they wrap into a second column inside the same card.
Right now the bus cards are dynamically resizing depending on the times shown, so they get both too small and too large, this is what it looks like right now with many time entries expanding the cards too much:
I believe each section of the Weather Card will need to be altered if you are looking to shrink itās real estate. You may be able to scroll the bus cards with overflow-y: scroll
on ha 2024.4.2
(too lazy to find another way for the boolean toggle to work using card_mod and core cards only, the double conditional works fineā¦)
do note that you might need to add some extra spacing in the view, to compensate for the menu (in this case) being sticky, and thus covering anything else you might have there
Below is the code for one of the bus cards.
I think you might be misunderstanding a bit, I donāt want to do anything to the weather card at all.
For the bus cards I just want the cards to have a static size, and for the times to wrap into a second column if necessary. I donāt want scroll bars as this dashboard will be on an e-ink display.