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

Padding not working when stacking cards together #132

Closed
4 tasks done
mkanet opened this issue Jan 21, 2021 · 4 comments
Closed
4 tasks done

Padding not working when stacking cards together #132

mkanet opened this issue Jan 21, 2021 · 4 comments

Comments

@mkanet
Copy link

mkanet commented Jan 21, 2021

My Home Assistant version: 2021.1.4

My Lovelace configuration method (GUI or YAML): GUI

What I am doing:
Stacking cards vertically... padding not lining up.

What I expected to happen:
When stacking cards vertically, fold-entity-row's padding (left and right borders) should match the standard padding that all other Lovelace cards use.

What happened instead:
fold-entity-row card's padding does match any of my Lovelace cards. I have tried padding: 0` as well as other values.
fold-entity-row-paddingissue

Minimal steps to reproduce:
Use code shown below to reproduce

# The least ammount of code possible to reproduce my error
cards:
  - card: null
    entities:
      - entity: sensor.blank_sensor
        image: /local/images/Al.png
        name: Al
        style: |
          :host {
            color: #A5AEB7;
            font-size: 16px;
            font-weight: bold;
          }
      - entity: sensor.sm_a505u_battery_level
        name: Battery Level
      - entity: sensor.sm_a505u_battery_state
        name: Battery State
      - entity: sensor.sm_a505u_wifi_connection
        name: Wi-fi
      - entity: sensor.alina_location
    show_header_toggle: false
    type: entities
  - card: null
    type: 'custom:fold-entity-row'
    head:
      type: section
      label: More..
    padding: 0
    group_config: null
    entities:
      - entity: device_tracker.sm_a505u
      - entity: sensor.sm_a505u_audio_mode
mode: vertical
type: 'custom:stack-in-card'


# End of code

Error messages from the browser console:


By putting an X in the boxes ([ ]) below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
  • Have made sure I am using the latest version of the plugin.
  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
@thomasloven
Copy link
Owner

Add this to an entities card:

All other usage is unsupported

@mkanet
Copy link
Author

mkanet commented Jan 22, 2021

Add this to an entities card:

All other usage is unsupported

My apologies @thomasloven. I think it might be something that I'm doing wrong. In any case, I'll ask for help on the forum to see how to do it correctly.

@thomasloven
Copy link
Owner

No, that line from right at the top of the usage instructions tells you to use fold-entity-row as a row in an entities card. That is, inside the entities: section of a card with type: entities.

That's not what you are doing, and then you're on your own.

@mkanet
Copy link
Author

mkanet commented Jan 26, 2021

No, that line from right at the top of the usage instructions tells you to use fold-entity-row as a row in an entities card. That is, inside the entities: section of a card with type: entities.

That's not what you are doing, and then you're on your own.

Thank you for explaining why it wasn't working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants