custom-cards / stack-in-card

🛠 group multiple cards into one card without the borders
MIT License
262 stars 24 forks source link

Card may not be displayed if one stack contains another stack #35

Closed ildar170975 closed 1 year ago

ildar170975 commented 2 years ago

Checklist:

Release with the issue: 0.2.0

Last working release (if known):

Browser and Operating System: Win10x64, Chrome

Description of problem: If one stack-in-card contains another stack-in-card, the card my not be displayed:

  1. Open some dashboard.
  2. Switch to "edit" mode.
  3. Add a new card and then paste code into Editor. Save the changes.
  4. The card is not displayed: image
  5. Switch off the edit mode.
  6. The card is not displayed.
  7. Refresh the page.
  8. The card is displayed.

Javascript errors shown in the web inspector (if applicable): no errors

Additional information:

type: custom:stack-in-card
mode: vertical
keep:
  background: true
  box_shadow: false
  margin: true
  outer_padding: false
  border_radius: true
cards:
  - type: entities
    entities:
      - sun.sun
    card_mod:
      style: |
        ha-card {
          --ha-card-background: red;
        }
  - type: custom:stack-in-card
    mode: horizontal
    keep:
      background: true
      box_shadow: true
      margin: false
      outer_padding: false
      border_radius: true
    cards:
      - &ref_button
        type: button
        card_mod:
          style: |
            ha-card {
              --ha-card-background: grey;
            }
      - *ref_button
      - *ref_button

image

ildar170975 commented 1 year ago

Do not observe it for some last time. Gonna test it for some period, will close it if it is OK.

ildar170975 commented 1 year ago

Closing it. Do not see problems on 2 setups (2022.7, 2022.9).