Just updated to 2023.4 and noticed the same. But when I’m switching back to the default theme without any card-mod code the dashboard still doesn’t work properly. So I’m gonna wait for a .1 or .2 version before trying to fix it by changing the card-mod code
Most of the time I recommend waiting for a 2023.4.x version to update to.
I stand corrected, I had a two scroll bars which bugged out but it wasn’t because of core HA but because of an older version of the custom-button card.
I’ve also looked at the card-mod code and mode some changed so the navigation stays at the bottom in 2023.4.x
Only thing which changed is the removal of the blurred background behind the nav bar. Currently the main content doesn’t fall behind the navigation bar anymore, so there is nothing to blur. We can “fix” this in the code but it felt too hacky, so I left it out.
card-mod-root-yaml: |
.: |
/* ___________ Bottom tabbar ___________ */
#view {
margin-top: 0 !important;
height: calc(100vh - 80px - env(safe-area-inset-top)) !important;
}
.header {
top: auto !important;
bottom: 0;
background-color: rgba(var(--contrast1-RGB),0.6) !important;
}
:host([scrolled]) .header {
box-shadow: none !important;
}
.toolbar {
height: 80px !important;
padding: 4px 4px 16px 4px !important;
}
paper-tab {
color: var(--contrast10);
border-radius: 16px;
}
paper-tab.iron-selected {
color: var(--contrast20);
}
ha-menu-button, ha-button-menu {
color: var(--contrast10);
}
Keep in mind that the above code is ONLY to create a bottom navigation bar. Combining all the card-mod code will end up like the code below. Still need to include the custom variables of course, this isn’t a complete theme.yaml file, only the card-mod section:
card-mod-theme: Rounded
card-mod-root-yaml: |
.: |
/* ___________ Bottom tabbar ___________ */
#view {
margin-top: 0 !important;
height: calc(100vh - 80px - env(safe-area-inset-top)) !important;
}
.header {
top: auto !important;
bottom: 0;
background-color: rgba(var(--contrast1-RGB),0.6) !important;
}
:host([scrolled]) .header {
box-shadow: none !important;
}
.toolbar {
height: 80px !important;
padding: 4px 4px 16px 4px !important;
}
paper-tab {
color: var(--contrast10);
border-radius: 16px;
}
paper-tab.iron-selected {
color: var(--contrast20);
}
ha-menu-button, ha-button-menu {
color: var(--contrast10);
}
card-mod-view-yaml: |
hui-masonry-view:
$: |
/* Swipecard full width on mobile */
@media screen and (max-width: 599px) {
#columns .column swipe-card {
margin-left: -4px;
margin-right: -4px;
}
}
card-mod-card-yaml: |
.: |
/* General changes */
ha-card {
transition: none !important;
font-family: 'hk nova semibold', 'Roboto', 'Noto', sans-serif !important;
}
/* Vacuum card load transition disabled */
.type-custom-xiaomi-vacuum-map-card {
transition: none !important;
}
/* Graph card style */
.graph {
background: var(--blue-tint);
display: flex;
overflow: hidden; /* Temporary fix for graph overflow bug */
}
.graph .name {
font-size: 12px;
line-height: 18px;
background: var(--black);
color: var(--white);
padding: 6px 10px;
border-radius: 100px;
z-index: 1;
}
.graph .icon {
display: none;
}
.graph .info {
margin-top: 0;
padding: 24px 24px 0 24px;
order: 1;
}
.graph hui-graph-header-footer {
order: 3;
}
.graph .header {
padding: 0 24px;
order: 2;
margin: 4px 0 -16px 0;
z-index: 1;
}
/* Entities card style */
.type-entities {
background: none;
}
.type-entities .card-header {
padding: 0 0 12px 0;
}
.type-entities .card-content {
padding: 0;
}
card-mod-row: |
/* Entities card row style */
:host {
display: block;
background: var(--contrast2);
border-radius: 24px;
padding: 6px 12px 6px 6px;
}
@Vorlex, Ye it’s a sensor template:
- platform: template
sensors:
robotstofzuiger_laatst_actief_woonkamer:
friendly_name: "Robotstofzuiger laatst actief woonkamer"
value_template: "{{as_timestamp(states('input_datetime.woonkamer_robotstofzuiger_laatste_datum_actief')) | timestamp_custom('%a %-d %b', true)}}"