-
Notifications
You must be signed in to change notification settings - Fork 127
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
Layout-break doesn't cause a column break in HA 2024.6 #291
Comments
Just spend some time understanding why my Google Nest Hub had a strange layout. And indeed it boiled down to the layout-break being ignored. |
I have the same issue - I didn't see anything in breaking changes for this |
Same her since the lates update of HA. No layout break anymore. |
Same here |
Seems to still be the same bug as #288. It is possible to restore the multi-column layout by editing the YAML of the tab as indicated there:
BUT... Then, when switching the tab to edit mode, the "Modify" buttons no longer appear and actually editing any card becomes impossible. |
I really hope a better solution will be find 🤞 |
I have gone back to 2024.5.5 as I have this layout in 95% of my UI .... I did stare at the source code for 2 seconds then quickly closed it again ... hoping someone with understanding of how it works can fix it ... |
Same issue here. I love this plugin because it's so simple to use so getting into the weeds to resolve it myself really isn't appealing! |
Same issue since upgrading core to 2024.6 |
Same here. Updated to 2024.6 and no more breaks as a result. Reverted to 2024.5 which "fixed" it. |
I tried grid layouts and combinations of vertical stacks within horizontal stacks, but nothing reproduced the simplicity and clean function of the layout-break card. Like a lot of others, I eagerly await a fix to this incredibly useful and vital frontend. |
I also experience this issue after upgrading to 2024.6. What is the path to resolving it correctly? Is this project still maintained? It looks like it could be a schema update similar to 0fb56a5#diff-a9f216053d8c15e87ef3962bae2f028ca9730c2bb9b5b669bd5e0e044ed18364L13 - which would explain why manually adding the layout_type key forces it to work (supposed to be automatically appended via the code above). |
Same.. |
Same here. |
same |
Yes it's broken and setting |
I went ahead and copy-pasted my dashboards to the new Drag and Drop dashboard layout, and it works quite well with similar Column concepts. This spells the end of the road for Layout Card for me, and I expect due to the new layout tools, there will be decreasing need for it in the future. Maybe not time for everyone, but for me it works. Thanks for all the fish. Cheers. |
Yep. I transferred one of my views to a "Sections" type today and it works great plus displays more consistently across devices for me. I think I'll probably be doing the rest of my views when I have time and then bin this. |
Ironically, I just did the same this morning. The Sections capability is good. I hope they make the ability to expand the width of certain cards (e.g. entity, button) to the whole section. I have several Mushroom Template cards that are assigned to two columns in a section row, which I would prefer to take up the whole row given the information they contain. |
Just found a work around. Add a vertical stack to the Section that contains the cards you want to occupy a whole row. |
Change the layout type on the card from "default" to either horizontal or vertical, then it will fill the whole row. I had the same issue at first. |
The worry with the section approach is the experimental nature of the feature.. if I switch all my dashboards over I may get issues in a later release if they have to change the architecture .... |
You can customize the width and the height on the card using layout_options:
grid_rows: 4 # number of row for your card in the grid
grid_columns: 4 # number of column for your card in the grid |
With 2024.6 card are now wrapped with a |
I guess the issue still exists with core 2024.6.1 that has been released 12h ago..? |
I moved to a grid-layout, it works as expected without using layout-break card and I can still use UI to edit elements.
|
I moved to a sections layout, was planning on this anyway and I am really happy I did. So much more flexibility |
much typing later .... 20 dashboards on two systems converted from using custom layout (only ever used the break capability of the card) to sections .. I now have to hope they don't change the section approach in a later release as it becomes final rather than experimental... A couple of issues with cards that have coding to not show if there is nothing to show - alexa timers and waste collection - no solution to these yet so a white space gap in the UI when they have nothing to display |
For those migrating to a Sections layout, you can actually adjust the yaml to convert your existing layout-card dashboard to a sections one, despite it warning you that migration is not supported. First, I recommend backing up your dashboards entirely before you begin (hit edit, then click the ••• and pick "Raw configuration editor," then copy all into a backup file). To do this:
This made the migration much faster for me, but of course using copy-paste isn't so bad either if you can't do this. |
Have you cleared the browser cache? Most HA interface changes seem to require that. |
In "Resources" add "?v=1" after "layout-card.js" Then reload frontend clearing the cache (you can do this with SHIFT+F5 key, or clicking on refresh page icon on the browser while press SHIFT key). Or clear all web browser cache. By(t)e |
Thanks - I had not but now have .. restarted the browser after clearing as well but it didn't fix it .. tried Edge which I rarely use and I see the same issue So I started a fresh dashboard and set a view and set view type as vertical (layout card) .. I added a couple of cards and a break but it still all showed in one column....
I think I will go and lay down for a while... |
Thanks @andbad ... sorry to be thick - I am not familiar with url formats - I already have a hacs tag after the .js - is that just another with a ? or is there a separator I need to use? |
I don't know how works hacstag, but I think you should use "&" as separator, like your second example. By(t)e |
My PR doesn't include the built file because it must not be included in PR. So, adding my fork into hacs will not work. You have to use this file #291 (comment) |
@piitaya Thanks Paul - so the answer "I am just poking around in the darkness with no idea what I am doing" was actually the correct choice. The first thing I tried was to just replace the file however that didn't do it so I tried other steps .. what I neglected, and @pcb1962 reminded me, was to clear cache after replacing the file .... but by then I had already moved on to try other things so missed the eureka moment ... Based on your post I went back to just replacing the file, then cleared cache, and all was back to working, Many thanks for your work on this very useful card. I did try out sections but they didn't work for my family dashboard landing page as I have quite a few conditional cards designed to hide stuff not in use so as to keep the dashboard as compact as possible .. hiding sections didn't work as it maintained the grid and conditional cards were not playing well on my android 5.01 tablet fixed to the kitchen wall. |
All working with the ha-section-grid-row-... variables, thanks all! |
Sections is still listed as experimental, maybe don’t invest all the time into that view yet. Does look really nice and easy to manage though. |
I mentioned the @Montreal666, so far it doesn't seem there's a way to configure that value. @iptvcld, you can create a custom theme and use in the dashboard, using these variables posted earlier. This will solve all issues, except the vertical spacing you see below short cards. As a summary, given I also had some hiccups trying to create my own theme as well:
# origin: https://github.com/thomasloven/lovelace-layout-card/issues/291#issuecomment-2156524817
Thin sections:
ha-view-sections-column-max-width: 500px #default: 500
ha-view-sections-column-min-width: 320px #default: 320
ha-view-sections-column-gap: 32px #default: 32
ha-view-sections-row-gap: 8px #default: 8
ha-section-grid-column-gap: 8px #default: 8
ha-section-grid-row-gap: 8px #default: 8
frontend:
themes: !include_dir_merge_named themes
Good luck! |
So i edited the yaml to:
replaced the layout-card.js and cleared the cache. |
Adding the layout type was a work around but caused the edit button issue. The fix in the .js file made it all work again so you don't need layout type in the yaml ... but remember to clear browser cache after replacing the .js file |
Thank you; this worked and yes as for the vertical spacing for short cards - that still remains, any cool header ideas you have? Also is this the time to jump ship and and use sections? Or is it too early? |
@iptvcld no cool ideas, unfortunately haha I've so far moved my main dashboard to Sections, with tweaks to the custom theme I posted, converting with trisweb's guide (#291 (comment)). Those issues seem minor to me and should be fixed in the near future. It feels better than using custom code from developers (even from someone as dedicated as Thomas, it's prone to break since it's not tested together with the HA releases); and drag-and-drop is a bliss as well. |
Yeah the drag and drop is a cool feature and also being able to add columns by dragging a slider is neat. Looks like I will start copy and pasting my cards over to new Sections views as it cannot be migrated. |
If you look back through this thread, there are steps to migrate manually. I did this with a dashboard with dozens of complex cards and it only took about five minutes. Super happy with the result. Note that for the bit about having to indent everything (thousands of lines in my case) you can just highlight the text and hit tab (twice here) to make quick work of it. |
is this mod even still being maintained?? |
I guess Thomas took a break from GitHub life... The PR from Piitaya #293 is up for grabs for two weeks already. |
So I moved over to 'sections' because of this issue. But now I have another small problem. I'm getting a 2 column view on smaller widths (tablets), BUT I really want 3 columns. How do I do that? Here's what my header of this section looks like: `type: sections
|
Wow lots of comments here, whats the proper way now? |
The 'proper' way is for Thomas to accept the PR and produce a new release. |
Thank you, works again ! |
still waiting on 2024.5 release |
Could you specify what i have to do? - sorry noobie here. |
Thank you, it works again with https://github.com/sdrapha/lovelace-layout-card/blob/fix_break_card_ha_2024.6/layout-card.js. 👍 |
Any news on this? I've had to remove the layout-card from my dashboard and just let HA decide where things go, because any layout-card I create just gets put under the existing cards and I have to scroll down on my screen to see everything. |
Use one of the working layout-card.js files in this post or from the pr (#293) and it is working again. |
My Home Assistant version: 2024.6
Layout-card version v2.4.5
What I am doing: Just updated to 2024.6 (on two different HA instances). The layout-break card no longer creates a column break; all cards appear in a single column. The dashboard is set to Vertical (layout-card).
What I expected to happen: The two or three columns in my dashboards would all continue to render as previously.
What happened instead: All cards appear in a single column.
Minimal steps to reproduce: Upgrade to HA 2024.6 and clear cache.
Error messages from the browser console:
By putting an X in the boxes ([X]) below, I indicate that I:
The text was updated successfully, but these errors were encountered: