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

Question: Cannot figure out how to make it show more than 2 columns. #301

Open
tjbramwell opened this issue Sep 7, 2024 · 0 comments
Open

Comments

@tjbramwell
Copy link

Hi,

Apologies if this is the wrong way to do this or its in the wrong place, not really done this before.

I'm trying to get a bunch of Auto Entities as custom buttons show in a grid but I cannot figure out how to get the grid to show more than 2 columns.

In masonry-layout I can get 2 columns, but in grid I can only seem to get 1.

Any help or advice would be much appreciated.

Here is my Code:

`path: layout-card
title: Layout Card
type: panel
cards:

  • type: custom:auto-entities
    filter:
    include:
    - domain: input_boolean
    state: "off"
    options:
    type: custom:button-card
    show_name: true
    show_icon: false
    show_entity_picture: true
    aspect_ratio: 1/1
    styles:
    card:
    - border-radius: 10%
    img_cell:
    - border-radius: 50%
    - height: 95%
    - width: 85%
    icon:
    - height: 100%
    - width: 100%
    tap_action:
    action: toggle
    exclude: []
    card:
    type: custom:layout-card
    layout_type: custom:masonry-layout
    layout:
    width: 100
    max_cols: 6
    min_cols: 6
    margin: 0
    cards: []
    `
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

1 participant