You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the grid layout as the view directly in a dashboard all is fine and cards are rendered with rounded corners. However (#287) in order to render correctly on a nest hub, it is necessary to use a panel view with a layout-card inside (I know, it says not recommended, but I have no choice). Using the layout-card with a grid-layout is necessary to render the dashboard on a nest hub, but the ha-card-border-radius is lost, ie it is reset to zero somewhere and the cards are rendered with square corners.
The only workaround I have found is to use card_mod on every card to set the border-radius and I don't want to do that.
It makes no difference whether or not I use a theme that sets the border-radius.
My Home Assistant version: 2024.5.4
Layout-card version (FROM BROWSER CONSOLE): 2.4.5
What I am doing:
Using layout-card to render a panel
What I expected to happen:
The panel should be rendered with rounded corners in the individual cards
What happened instead:
The ha-card-border-radius is set to zero
Minimal steps to reproduce:
Create a new dashboard and replace the raw yaml with this:
# The least amount of code possible to reproduce my errorviews:
- title: test againpath: test-againtype: panelcards:
- type: custom:layout-cardlayout_type: custom:grid-layoutlayout:
grid-template-columns: repeat(3,auto)grid-template-rows: autogrid-template-areas: | "r1c1 r1c2 r1c3" "r2c1 r2c2 r2c3"cards:
- type: markdownview_layout:
grid-area: r1c1content: '## Placeholder'
- type: markdownview_layout:
grid-area: r1c2content: '## Placeholder'
- type: markdownview_layout:
grid-area: r1c3content: '## Placeholder'# End of code
Using a grid-layout view:
Error messages from the browser console:
None
By putting an X in the boxes ([X]) below, I indicate that I:
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.
The text was updated successfully, but these errors were encountered:
I tried the workaround #284 (comment) and it worked viewing the dashboard in a web browser. The workaround needs adding to your theme. Also be sure to read about themes in lovelace card mod https://github.com/thomasloven/lovelace-card-mod/tree/2.0.0 for the workaround to be able to reference your theme correctly.
When I use the grid layout as the view directly in a dashboard all is fine and cards are rendered with rounded corners. However (#287) in order to render correctly on a nest hub, it is necessary to use a panel view with a layout-card inside (I know, it says not recommended, but I have no choice). Using the layout-card with a grid-layout is necessary to render the dashboard on a nest hub, but the ha-card-border-radius is lost, ie it is reset to zero somewhere and the cards are rendered with square corners.
The only workaround I have found is to use card_mod on every card to set the border-radius and I don't want to do that.
It makes no difference whether or not I use a theme that sets the border-radius.
My Home Assistant version: 2024.5.4
Layout-card version (FROM BROWSER CONSOLE): 2.4.5
What I am doing:
Using layout-card to render a panel
What I expected to happen:
The panel should be rendered with rounded corners in the individual cards
What happened instead:
The ha-card-border-radius is set to zero
Minimal steps to reproduce:
Create a new dashboard and replace the raw yaml with this:
Using a grid-layout view:
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: