-
Notifications
You must be signed in to change notification settings - Fork 128
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
Panel view, 2024.4: no borders & box-radius for child cards #284
Comments
Related: thomasloven/lovelace-card-mod#369 |
I find it very odd that the rendering is correct in the editor, but no rounded corners otherwise. I have added car-mod code to a few of the more important items, but would prefer not to have to add it to every single item. |
Absolutely not odd since cards in a panel mode are rendered differently. |
My dashboard is a panel layout that contains a layout-card that subsequently has everything inside of it. Resolved mine with the following addition in the theme yaml (my card_mod style wasn't getting inserted by applying card-mod to layout-card directly, so I had to go up a shadow root and drill into it via theme card-mod-view-yaml):
via element explorer > select layout-card element, filter for border > devtools told me that apparently layout-card was the first (top-most) element that is setting those values to 0, everything below inherits that value (0/none) via this style in layout-card:
|
This unfortunately does not work for me using a casted dashboard. It works for the dashboard when it is not casted though. |
This works in a web browser but not on a google nest hub when casting. |
Can someone explain how I add this to the theme yaml? |
Hey @e46lux, did you add this to the standard theme or to (your) custom theme? |
This solution (the one that I quoted earlier) is not needed anymore if you use a sections view instead of panel view with layout-card. Sections view is much more mushroom friendly and you don't need to fiddle with the layout. You can take a look at my sections based mushroom card dashboard here: https://github.com/jm-cook/my-smart-home/tree/main/nest-hub-dashboard I see there is a mistake in the document as it still says to load the lovelace layout card. AFAIK this is no longer needed. |
@jm-cook thanks work :) |
I ran into the same issue with border-radius showing properly in the editor but not being rendered to the dashboard. Doesn't render border-radius
Does Render
|
@JosephB10 |
My Home Assistant version: 2024.4.1
Layout-card version (FROM BROWSER CONSOLE): 2.4.4
What I am doing:
Consider this card in a PANEL view (default HA theme):
In editor everything looks OK:
In the view - no borders & box-radius applied for child cards:
Edit mode:
Normal mode:
In masonry - everything is OK:
Edit mode:
Normal mode:
Probably related to these changes:
home-assistant/frontend#20122
home-assistant/frontend#20135
home-assistant/frontend#20264
Error messages from the browser console:
none
By putting an X in the boxes ([X]) below, I indicate that I:
The text was updated successfully, but these errors were encountered: