bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
234 stars 32 forks source link

Swipe-card inside config-template-card glitches #56

Open ildar170975 opened 1 year ago

ildar170975 commented 1 year ago

If swipe-card is placed inside a config-template-card some glitches are observed:

type: custom:config-template-card
entities:
  - sun.sun
card:
  type: custom:swipe-card
  start_card: 3
  cards:
    - type: entities
      entities:
        - sun.sun
    - type: entities
      entities:
        - sun.sun
        - sun.sun
    - type: entities
      entities:
        - sun.sun
        - sun.sun
        - sun.sun
    - type: entities
      entities:
        - sun.sun
        - sun.sun
        - sun.sun
        - sun.sun

A glitch is displayed on the right side: image

Also start_card option is ignored - the card No.3 is not set as an initial.

satyambaba commented 1 year ago

I am also facing the same issue, it ignores the start_card config and set it to the last card.