Could you tell me where do we add this?
To adjust the ha-view-sections-column-gap
setting, you need to create a new custom theme in Home Assistant. Follow these steps:
- Open your
configuration.yaml
file. - Add a new theme under the
frontend
section. - Reload your YAML configuration to apply the changes.
- Apply the new theme on your dashboard.
Here’s an example configuration:
# Load frontend themes from the themes folder
frontend:
themes:
MySection:
ha-view-sections-column-gap: 8px
For more information about Home Assistant theme configuration, refer to the official documentation.
Yes, this removes the gap betweenthe sections (after selecting the theme).
But this also remove the defautl Home Assistant theme and thus the ability to select Dark mode:
How to solve that?
Genius, tnx!!!
Very Good!
You may wanna vote for it here:
Piggy backing on this thread: is there a way to reduce the margins between the tops and the bottoms of the cards within the sections? I haven’t been able to find a thread that shows this.
I was able to create a theme like the one described in this thread and remove the spacing between the columns, but not the spacing between the cards.
Thank you for your help!