Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popup css styling injection #98

Open
radoprajitno opened this issue Mar 30, 2023 · 1 comment
Open

popup css styling injection #98

radoprajitno opened this issue Mar 30, 2023 · 1 comment

Comments

@radoprajitno
Copy link

Hi there,

The current popup seems not showing the right size. it overflow to the right side of my other cards.
Im curently using the Horizontal (layout-card), provided by HACS frontend layout-card mod.

image

What i want to approach is:
Full screen pop up with 10% margin of each side.
css shud be something like this..

div.popup {
display: block;
position: fixed;
height: 80%;
width: 80%;
top: 10%;
left: 10%;
z-index: 9999;
background: #000;
}

Question 1.
what is the best approach to inject the CSS to the card? i was trying to using card-mod but im unable to give the css accordingly.

I think it will be very great to have control or having few options, of how the popup behavior in the card settings.

cheers..

@TECH7Fox
Copy link
Owner

We moved on from the popup, and have it in the card itself. Because of the way HA uses popups (dialogs) there wasn't a good way to implement it without bugs. (Not without changing core at least)
Guessing your theme is allowing the card to "spread out".

I don't know if it's possible to inject CSS. The CSS changes dynamically when loading the card view.
You could fork the card and change the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants