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

Space appearing between different entities #73

Closed
drthanwho opened this issue Jan 5, 2020 · 6 comments
Closed

Space appearing between different entities #73

drthanwho opened this issue Jan 5, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@drthanwho
Copy link

Hi guys,

I am using vertical-stack-in-card in conjunction with horizontal-card and button-card. At first it seemed to work just perfect, but now it will occasionally display the entities with gaps in between like so:

image
image

Here is an example of the setup with one entity:

type: 'custom:vertical-stack-in-card'
cards:
  - type: horizontal-stack
    cards:
      - type: 'custom:button-card'
        color_type: card
        entity: binary_sensor.pir_sensor
        show_last_changed: true
        size: 50%
        styles:
          name:
            - font-size: 12px
            - font-weight: bold
          label:
            - font-size: 12px
        state:
          - value: 'on'
            color: yellow
            icon: 'mdi:motion-sensor'
            styles:
              card:
                - animation: blink 2s linear infinite
          - operator: default
            color: null
            icon: 'mdi:motion-sensor'
@jonohunt
Copy link

jonohunt commented Apr 6, 2020

I’ve noticed extra spacing between the title at the top and the entities below compared to ‘regular’ cards.

vertical-stack-in-card

Would be great if this was fixed, or if we could be able to tweak the padding ourselves.

@ttaidapos
Copy link

Yup I'm seeing this as well and it's not with all the cards either. Below is what i'm seeing, i've noticed this with entity-filter cards and a few others.

image

type: 'custom:vertical-stack-in-card'
cards:
  - entities:
      - entity: input_boolean.modem_reboot
        icon: 'mdi:access-point'
        name: Modem Reboot
      - entity: input_boolean.router_reboot
        icon: 'mdi:router-wireless'
        name: Router Reboot
    show_header_toggle: false
    title: System Status
    type: entities
  - type: thermostat
    entity: climate.dining_room
  - type: entity-filter
    entities:
      - sensor.front_door_keypad_battery
      - sensor.water_battery_level
    state_filter:
      - operator: '>'
        value: 50
  - type: entities
    entities:
      - entity: sensor.dark_sky_precip_probability_0d
      - entity: sensor.dark_sky_apparent_temperature

@jonohunt
Copy link

I managed to get around this (mostly) by playing around with the padding, removing the shadow etc.

- type: custom:vertical-stack-in-card
  cards:
    - type: entities
      title: "Xbox One"
      show_header_toggle: false
      entities:
        - entity: sensor.xbox_username
    - type: picture-entity
      style: |
        ha-card {
          background: none;
          box-shadow: none;
          padding-top: 0;
          padding-bottom: 15px;
          padding-left: 15px;
          padding-right: 15px;
        }
      entity: sensor.xbox_currently_playing

@bcutter
Copy link

bcutter commented Dec 28, 2020

Could not work around this. Looks quite seperate and not really good :-(

grafik

@KameDomotics
Copy link

KameDomotics commented Jan 8, 2021

I have the same problem (I use Google Dark Theme)

5894EF4E-A012-477B-B4BA-C1E5DE5BBF6D

5D339CED-46EB-43F0-8BFA-C108F03714D4
509B405D-BC6D-4AFB-93AE-E9ABA897E26F

@ofekashery ofekashery removed their assignment Oct 29, 2022
@ofekashery ofekashery added the enhancement New feature or request label Oct 29, 2022
@ofekashery
Copy link
Owner

Moved to #130.

@ofekashery ofekashery closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants