#inline scrollable badges
1 messages · Page 1 of 1 (latest)
try:
style: |
ha-card {
box-shadow: none;
}
.card-content {
max-height: 700px; #or something
overflow-y: scroll;
}```
i can't remember how to make it only happen on phone and leave pc alone though
@zinc tinsel thanks. Where should I apply this for badges? It not a card in Lovelace yaml.
ahh.. nards - idk tbh, I haven't played with badges much
It's hard to know if you just want to hide them or display them differently based on your post, but you can change the visibility parameters on your badge to determine if one or more should be not shown on smaller devices. Otherwise you'll have to hack through the CSS for card-mod or perhaps someone has a solution they've hacked out already.
I want to show them all. But in one line. In cca is easy to set y-scroll and turn off flex wrap. But I don’t know how to apply them. Card mod is not working in this scenario. I should be more specific in question.
You could always make badges visible on desktop only and create tiles/mushroom cards for a sidebar that's visible only on mobile. Not a perfect solution but a workable one until you hack the CSS
I want the same as you @stone void and I could not find a solution… Did you achieve it at the end?
Not yet. I found a hacky way via js. But it’s not stable. I’m waiting for card mod 3.5.