My popup-card has stopped displaying itās content completely since upgrading from 2023.1 to 2023.4. Anyone know why? Iām on the latest browser mod and do it like below. The card pops up, but the button card it contains no longer appears. I only get a title. I donāt see any changes in syntax on either card, so I canāt imagine whyā¦
- type: custom:popup-card
entity: sensor.trash_display
title: "Trash Needs Taking Out"
card:
type: button
name: I took it out!
tap_action:
action: call-service
service: input_boolean.turn_off
data:
entity_id: input_boolean.trash_needs_taking_out
entity: sensor.trash_display
When I first updated to HA 2023.4, Browser mod got brokenā¦so I wound back to my proxmox backup and all worked again as it was.
I saw there was a Browser mod fix pushed out (2.2.1) which fixed things for 2023.4 and onwardsā¦
So today I went to update HA, but only 2023.5 showing so went to that AND did the Browser Mod update as wellā¦but still, the sidebar and menu bars can no longer be hiddenā¦and even the interface to add/remove/turn on/turn offā¦ donāt seem to workā¦any changes arenāt reflected and if I try to delete one it still shows in the listā¦even trying the nuclear option of removing the browser in question altogether doesnāt work either so ill be winding back again for now
Also having the issue again where i cannot slide in the sidebar from the left as I have always been able to do prior to these last few updatesā¦is there something else I need to change to get this working againā¦
Itās explained pretty clear in the ReadMe. You updated from Browser_mod 1.5 to 2.0, which changes basically everything. You need to rework all your popups. There are other broken changes, so make sure to read all updated docs.
popups and everything else still work as expectedā¦its just the headers and sidebars that arent hiding ā¦oh and the sidebar cant be slid in from theft as it could prior to the HASS update
Dont get me wrong, there is every chance that its all the front end but thatās the whole point of this thread and otehrs like it, to let people know there are issues
Iām not responding to you, but to @scstraus, heās having issues with popups content (because heās not using the new parameters). You can see in my message I targeted him
It has worked before but after upgrading from v2023.4.2 to 2023.4.5 I cannot get it to work properly anymore.
Anyone who knows why it is like that and/or see what Iām missing?
Ok answering my own question as maybe will help someone.
I was trying to overcomplicate it when it was enough to carefully read the documentation to the end and add card_mod to style the popup.
So after small changes the transparent background works well.
@thomasloven is it possible to use the dashboard view theme to style the popups? I have a theme specified for my dashboard view but when I try to put the colors variables there (i.e. ha-card-background, popup-background-color), it doesnāt work. It only works when I have those values in the global user HA theme which affects all the popup windows in HA. Styling every single browser_mod.popup call with card_mod is a bit of a pain
I do this for the longest time for many UI elements and also allows me to change the style from one file, which updates then all popups that use that code. If you want different styles, just create separate yamls and include the one you want with the style
Thatās a great idea @ASNNetworks. Thx, will give it a go
Oh just realised it works only when the dashboard is a yaml file but mine unfortunately is not at the moment Fortunatelly migration seems not to be difficult
Thx again @ASNNetworks it works fine but now have an issue with the standard more-info card just for one dashboard. How can I apply the same style to those popups? Do I need to set popup-background-color or mdc-theme-surface somewhere?
The standard more-info dialogs have nothing to do with brower_mod popups, so you canāt style those those this way.
For those you need to use card_mod inside your theme.yaml. When the dashboard uses that specific theme, it will apply the more-info dialog theme to the standard more info dialogs.
I am creating a pop_up screen for my dashboard and I use the āsize: wideā option. This all works great on the desktop however on my mobile it makes me scroll left and right to see my whole content. When the āsize: normalā is used, on the mobile it resizes so it doesnāt scroll left and right but then its small on the desktop.
Is there something Iām doing wrong, does anyone else see this?
Possibly but when I set the āsize: normalā in the code it resizes everything on the mobile such that I canāt scroll left and right. However on the desktop the popup is much smaller.