Even with the underlying yaml exactly the same:
(I know I don’t need card_mod: in the Sections layout)
name: Inside Temperature
graph: line
type: sensor
entity: sensor.thermocarry_2
detail: 2
grid_options:
columns: 15
rows: 1
card_mod:
style: |
ha-card {
height: 140px !important; # Set a fixed height
}
Anyone know how I can make the old Masonry style layout have the text over the top of the graph?
I’ve been trying to migrate all my layouts to the new format but I just can’t quite get the layout I like just yet, so some screens are keeping the old type: custom:grid-layout
I don’t use card_mod with the Sections layout and it works great, I do use card_mod with the Masonry layout and get the clipping. If I don’t use card_mod then I can’t control the height of the card in Masonry layout.
Changing a card’s height with card-mod may cause undesired effects in many cases. What is a reason of using card-mod in masonry, only to set a smaller height? Cannot test it right now, but I am afraid this card behave differently inside a section; to get same look in masonry you will probably need more styling with card-mod, not just setting a fixed height.
Thanks! Yeah, I only use card_mod to set the height accurately, no other reason. I made these layouts years ago! Do you know a better way to set the height in a Masonry layout?
I’ll look into card_mod again, it’s been a very long time!
Thanks mate!
It seems that it should be done differently for the Sensor card.
Sorry, cannot help right now, away from a PC, may be in a week or two will help. Meanwhile, you can ask in the main card-mod thread, may be someone will help.
Actually, I meant a post with “position”. Playing with margins may not give same results on different clients. Of course, a subject to experiment. Cannot test myself unfortunately.