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.
The issue of empty popups is only happening with button cards on it.
So instead of a button card using a custom button card, makes those popup cards work again.
ufffā¦does button card still exists in HA ? (just kiddingā¦)
i didnāt use it from the moment when i found custom button card. Markdown card is also on my ānot used anymoreā list from that moment. In fact, i just went through my dashboards recently and found out that appr.70% of my cards are ācustom:button-cardā. Itās waaay most versatile and usefull card in HA. Light years ahead. Thereās really not much you canāt do without it, it just takes some browsing sometimes to find a solution.
Thatās why itās very sad that itās not developed anymore. I really hope that author will reappear, or someone else will continue his (hers?) work if he doesnāt.
I dont know if i am doing something wrong but i have conditional card that shows what is playing on my fire tv stick.
I also have a firemote card that i am want to popup if i click on the image of the firet tv.
However it doesnt do anything when i click ā¦ below is my code can anyone take a look and advise if i am doing something wrong, because i am lost now and cant see the wood for the trees.
Hi. Recently I have updated HA to newest version. I actually did few updates. I am not sure after which one I started have problem with popups. When popup has buttons on bottom it looks like some space is cut between buttons and bottom edge and scroll bar is visible.
How to remove this scroll bar?
Yep, pretty regularly - it goes offline, comes back, goes offline again, comes backā¦ I wrote a couple of times about it (and others, too), and gave up, since thereās no back information from author why this is happening. Now only thing i use from browser mod is popup - this part (for now) always works.
From 2023.4 HA update some other things doesnāt work, also, like āsidebar orderā, but thereās also nothing said about it, nor update releasedā¦ (maybe author gave up on browser_mod addon ā¦ ?)