Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon_size is not working with a conditional card #863

Open
WallyDW opened this issue Aug 3, 2024 · 0 comments
Open

Icon_size is not working with a conditional card #863

WallyDW opened this issue Aug 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@WallyDW
Copy link

WallyDW commented Aug 3, 2024

Checklist

  • [ X ] I updated the card to the latest version available
  • [ X ] I cleared the cache of my browser

Describe the bug
When using icon_size the set size is not taken into consideration of a conditional card.
This cause the grow of the flex-box for the conditional card to be set as it original would.

Version of the card
Version: 4.1.2

To Reproduce
This is the configuration I used (change the entity line to a light of your choice):

type: custom:stack-in-card
mode: horizontal
cards:
  - type: markdown
    content: "Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test"
  - type: conditional
    conditions:
      - condition: state
        entity: light.hallway
        state: "on"
    card:
      type: custom:button-card
      show_icon: false
      name: Hide
      styles:
        card:
          - width: 75px
          - height: 30px

Screenshots
The YAML code is better

Expected behavior
If it is possible I would expect the conditional card to take the card size into consideration when it grows (reveal itself)

Desktop (please complete the following information):

- Browser: Firefox
  Version: 128.0.3
- Browser: Google Chrome
  Version: 127.0.6533.89

Smartphone (please complete the following information):

  • Device: Android
  • OS: 8 & 13
  • Browser: Companion App
  • Version: 2024.7.3
@WallyDW WallyDW added the bug Something isn't working label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant