I’m trying to create a custom mushroom card that uses markdown, and has the typical icon to the left.
I managed to cobble it together with stack-in-card and mushroom-template-card.
It looks how I want it to but it ‘breaks’ when resizing, and the text overlaps the icon
Here’s the code I used
type: vertical-stack
title: Appliances
cards:
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-template-card
entity: sensor.dishwasher_state_markdown
icon: mdi:dishwasher
icon_color: blue
- type: markdown
content: '{{ states.sensor.dishwasher_state_markdown.state }}'
card_mod:
style: |
ha-card {
margin-left: -180px;
padding-left: 46px;
box-shadow: none;
}
Is there a different (better) way of doing it than I’ve attempted?
If not, how can make the card responsive and prevent the elements overlapping when resized?