Skip to content

hide option gives undesired spacing #184

Description

@ildar170975

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: beta 2, 1.2.19

Last working release (if known):

Browser and Operating System: Chrome 147.0.7727.138, Win10x64

Description of problem:

Due to changes in Frontend (I would say - dated fall 2025), we get an unexpected vertical spacing between cards & rows.

Example with a card:

      - type: entities
        entities:
          - entity: input_boolean.test_boolean_2
            name: hide
      - type: custom:restriction-card
        restrictions:
          hide:
            condition:
              value: "on"
              entity: input_boolean.test_boolean_2
        card:
          type: entities
          entities:
            - entity: switch.test_switch
              name: card
      - type: entity
        entity: sun.sun
Image

Example with a row:

type: horizontal-stack
cards:
  - type: entities
    entities:
      - sun.sun
      - type: custom:restriction-card
        restrictions:
          hide:
            condition:
              value: "on"
              entity: input_boolean.test_boolean_2
        row: true
        card:
          entity: switch.test_switch
          name: row
      - type: section
      - sun.sun
  - type: entities
    entities:
      - sun.sun
      - type: section
      - sun.sun
Image

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


Additional information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions