This is my current attempt sans any advice or input from the community. It does not work ā¦ I know Iām not getting it but, at least for me, Iām not finding it that intuitive what to call or how.
this is for card-mod-theme really, but since you mention the header in the Shadow root now, please have a look how I should change a class to adapt to that?
Wrote a new issue on the not changing view icons, now we have 3.2.2 which is a complete rebuild:
we can still go back to a slightly modified 3.1.4 (I have it done and works ok, btw, also fixing the Shadow root mods in the .cardheader) but I really dont want to, and hope the card can be updated to bring back that functionality once again
Hi,
I was using card mod configuration in theme, in order to move the header to the bottom. Seems to be broken after upgrading to 2023.04.
Any suggestion for the solution?
It appears app-header has been deprecated when using the element inspector. Itās now split into two elements which are .header and .toolbar.
You could try renaming app-header in your card-mod-theme to .header e.g.
card-mod-root-yaml: |
.: |
@media only screen and (max-width: 480px) {
app-header {
display: none;
opacity: 0;
}
}
now becomes
card-mod-root-yaml: |
.: |
@media only screen and (max-width: 480px) {
.header {
display: none;
opacity: 0;
}
}
It semi-working for me using this method, but a consequence of it (at least in my config) is I am unable to actually get the header to fully display ānoneā - this just removes the action buttons but leaves the header there. It also seems to prevent the sidebar from being opened on mobile devices when swiping from left to right.
However for your application of just moving it, rather than hiding it, might work.
I was able to fix that, using above suggestion for replacing āapp-headerā with ā.headerā, āapp-toolbarā with ā.toolbarā, and some more adjustments.
Here is my full theme configuration, in case anyone want to compare.
ends up just blurring my whole homescreen and leaving the toolbar at the top of the page. Admittedly, Iām not amazing at CSS so I could be really borking this.
Sadly some card-mod stuff changed as well with 2023.4, in my case none of thesticky code works anymore. I used this to create a sticky header bar (horizontal-stack) with icons in it, but now the sticky part doesnāt work anymore:
Edit: sticky element was broken due to Kiosk Mode module. I always used to hide my header with card-mod theme. However, since that was broken I decided to try the new Kiosk Mode at teh same time as when I upgraded everything else. Disabling Kiosk Mode, fixes sticky cards again.
not sure if I see what that does, but why not simply use that stack without any card_mod? I have a horizontal stack as menu bar on all of my views as is
Yes, it sticks it at the top and stays there when your scroll the page. In my setup I have hidden the HA header bar completely (which thankfully works with new released Kiosk Mode module). And then I use my own statusbar that sticks to the top of my screen.
And at the bottom of my screen I created another horizontal stack with button-cards, to use as the navigation bar to each tab. Which uses bottom variable, making it stick at the bottom.
For that you need mod-card, otherwise you canāt make a stack card sticky as you know. This has worked for me since ever I used it like 2 years ago. But since the latest HA update, it doesnāt work anymore. Seeing as how sticky is just a CSS variable, I think we just need to use a different path in card-mod.
nice, I never had that, and it indeed seems very useful. I do still use the main view icons in the header bar, but have a dashboard menu stack, so I can always have a direct link to those, without having to slide I the menu from the left. We all have our use case
would be great if we could fine the correct element again.
As for the icon change, with has been broken since 3.1.5ā¦ or maybe I need another element for that too?
I wonder if the performance notice is just a bug that it says that, or it actually isnāt loaded properly as a front_end module anymore for better performance.
Edit: @Mariusthvdb sticky element was broken due to Kiosk Mode module. I always used to hide my header with card-mod theme. However, since that was broken I decided to try the new Kiosk Mode at teh same time as when I upgraded everything else. Disabling Kiosk Mode, fixes sticky cards again.