Skip to content

Border clipped at bottom on some themes #141

Description

@nunoaac

On certain themes (e.g. emergency, prism) the bottom border of the card is partially clipped. Other themes (e.g. warning) render correctly. Zooming the browser in or out will randomly make it appear correct or broken — suggesting a sub-pixel rounding issue.

What we've tried:

Setting overflow: visible on all ancestor containers (column cells, parent button-card, middle section)
Setting overflow: visible via card_mod on ha-card, :host, and .atc-inner-clip
None of these had any effect, suggesting the clipping originates inside the card's own rendering

Hypothesis:
The theme's root div (e.g. .at-emergency) uses box-sizing: content-box, so the border renders outside the element's layout box. Sub-pixel rounding causes the border to occasionally fall just outside the clip boundary of .atc-inner-clip. Themes that use inset borders or box-shadow are not affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions