Thermostat card taking up the entire column?

Is this bug in the thermostat card?

thermostat card bug

the single card takes up almost the entire column.

I’m using it in a custom layout-card but I’ve never seen anything like this before.

here is the relevant portion of the card config:

title: Environment
type: custom:layout-card
layout_type: custom:vertical-layout
layout:
  max_cols: 4
cards:
  - type: thermostat
    entity: climate.main_ac_thermostat
    show_current_as_primary: true

any idea how to fix it?

It is definitely not up to the official thermostart card to make sure it looks nice inside a custom layout card. That would be the job of the custom card, unless it also behaves bad in official layouts. So it is not a bug in the thermostat card.

I do not know about that specific custom layout card, it might be intended behavior. Maybe try putting a vertical stack in between?

You’re probably right. I edited my OP to remove that implication.

I seriously doubt it. I use that custom card all over and I’ve never seen anything like that with anything other than the thermostat card. But it’s also the only thermostat card I have since I just got the thermostat put in today and added the card.

I thought I’d ask to see if anyone had ever seen anything like this and fixed it.

I’ll play around with it.

Is that for the view layout? If so, just use type… custom:layout-card is for single card layout.

title: Environment
type: custom:vertical-layout
layout:
  max_cols: 4
cards:

Read the doc, the very first section how to use in view and card…

No, if I do that then the entire view become just one long single column vertical layout.

there are more cards after that that I have in the view that work just as expected. it’s only the thermostat card that screws up the layout.

this is what the view looks like if I remove the t-stat card:

If needed, any layout can also be used inside a lovelace-card

So just use horizontal-layout for 4 columns and vertical-stack for a single column, why complicate it too much?