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

Usage in vertical layout of 'custom:layout-break' card in yaml is unclear or isn't working #125

Closed
bturrie opened this issue Mar 17, 2021 · 6 comments

Comments

@bturrie
Copy link

bturrie commented Mar 17, 2021

The following yaml:

 - type: 'custom:layout-card'
        layout: veritcal
        cards:
          - type: 'custom:analog-clock'
            diameter: 200
            hide_SecondHand: true
            hide_FaceDigits: true
            color_HourHand: yellow
            color_MinuteHand: yellow
            color_background: gray  
			
          - type: custom:layout-break
		  
          - type: grid
            columns: 4
            cards:

Shows the grid card directly below the clock. Either I'm using the layout-break wrong or it isn't working from yaml

@thomasloven
Copy link
Owner

From the README:

NOTE: Please be aware that layout-card is itself a CARD, and cannot be wider than any other cards in the same view.
All cards you specify within it must fit inside this same width.
Thus layout-card is of limited use expect in panel mode.

@bturrie
Copy link
Author

bturrie commented Mar 18, 2021

It is in panel mode at least I think it is.

path: master_br
title Master BR
panel: true
cards:

are the lines of yaml directly above the code I showed in my post.

@thomasloven
Copy link
Owner

Then try switching place of t an i in "vertical".

@bturrie
Copy link
Author

bturrie commented Mar 18, 2021

Wow I never would have seen that. Thx. Unfortunately it didn't fix the problem. I certainly expected it to... I tried outdenting the layout-break card to match the layout card? That gave a syntax error...

@thomasloven
Copy link
Owner

Ah. Now I see it. Since 2.0 it's layout_type: not layout: https://github.com/thomasloven/lovelace-layout-card#layout-card-1

@bturrie
Copy link
Author

bturrie commented Mar 19, 2021

That was it. Thanks!

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