thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Transition issue #18

Open oleksandr-belei opened 4 years ago

oleksandr-belei commented 4 years ago

With transition on Items go beyond the card.

scr1 scr2

Fronted:

type: custom:state-switch
entity:  input_select.state
transition: swap-left
transition_time: <transition_time>
states:
  state1:
    type: horizontal-stack
    cards:
      - ...
  state2:
    type: custom:state-switch
    entity: input_select.substate
    transition: flip
    states:
      state1_1:
        type: horizontal-stack
        cards:
          - ...
          - type: vertical-stack
            cards:
              - ...
              - type: horizontal-stack
                 cards:
                   - ...
                   - ...
      state1_2:
        ...
VDRainer commented 4 years ago

Yep! Seems like the issue https://github.com/thomasloven/lovelace-state-switch/issues/14 is back if transition is enabled.

thomasloven commented 2 years ago

Please try release 1.9.0

jamess5 commented 2 years ago

Please try release 1.9.0

I downgraded to 1.9.0 but still my cards are too wide for what is shown. A big chunk of the right hand side is cut off unfortunately. I am using a vertical-stack within the custom:state-switch.

jamess5 commented 2 years ago

Please try release 1.9.0

I downgraded to 1.9.0 but still my cards are too wide for what is shown. A big chunk of the right hand side is cut off unfortunately. I am using a vertical-stack within the custom:state-switch.

Interestingly, I removed the 'transition' and 'transition_time' from the config and the width is correct (in version 1.9.0)

thomasloven commented 2 years ago

Yes... interesting how removing the things people say cause this makes it not happen... Who'd have thought?

Please try release 1.9.3. I think I nailed it down.

jazzyisj commented 2 years ago

Working for me in 1.9.3!