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

fill_container is not working in decluttering_templates #1133

Closed
2 tasks done
yohaybn opened this issue Apr 30, 2023 · 1 comment
Closed
2 tasks done

fill_container is not working in decluttering_templates #1133

yohaybn opened this issue Apr 30, 2023 · 1 comment
Labels
question Further information is requested

Comments

@yohaybn
Copy link

yohaybn commented Apr 30, 2023

Requirements

  • I have updated Mushroom to the latest available version
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

when I use fill_container in decluttering_templates. the card is not fill the container.

this is my template:

  template_ac_climate:
    card:
      type: custom:mushroom-climate-card
      entity: '[[entity_id]]'
      name: '[[name]]'
      show_temperature_control: true
     fill_container: true
      collapsible_controls: true
      hvac_modes:
        - cool
        - heat
        - 'off'
      tap_action:
        action: toggle

and the results:
image

Expected Behavior

card will fill the container.

Environment

- Browser: Chrome
- HA Version: 2023.4.6
- Mushroom: 2.7.1

Anything else?

No response

@yohaybn yohaybn added the bug Something isn't working label Apr 30, 2023
@piitaya piitaya added question Further information is requested and removed bug Something isn't working labels Apr 30, 2023
@piitaya piitaya changed the title [Bug]: fill_container is not working in decluttering_templates fill_container is not working in decluttering_templates Apr 30, 2023
@piitaya
Copy link
Owner

piitaya commented Apr 30, 2023

Hello. I removed the bug flag because any custom card have its own rules/code and I can not guaranty that any custom card can work with any Mushroom option.

fill_container option force the card to take 100% of the parent height. In the case of decluttering card, the parent seems to not be the grid but the cluttering card (because it creates an additional div).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants