-
Notifications
You must be signed in to change notification settings - Fork 40
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
Fr?/Bug.. Changing icon size back to 24px moves divider out of the right side card #211
Comments
wow, thats some pretty amazing stuff you found. lll test that tomorrow. thanks! also, because it would be a system wide thing for me, (and using card-mod-theme wasnt stable for me in the past), I hope to edit that in the resource , but have to figure out what to do with the current its used a couple of times and I dont exactly see what the various elements do. |
the calculation is a bit hacky, but I believe to have found a way to use the 24px on the toggle-icon-width, still cut the divider's overflow by subtracting that same 8px difference in the calc():
and all icons in the config have the smaller 24px icon and dont overflow the divider anymore. As far as I could see, changing this (in fact method 2/3) moves the icon a bit further to the right than when using the methods 4 or 5. Have not yet found a way to do this as a card-mod-theme setting, to test if that would be a reliable alternative without hacking the code of the resource... |
well, yes, thats correct. First I tried to edit the resource so it always uses 24px. That caused the overflow if the divider, so I had to change that with the -8px in the calc(). They are a set of edits tied together. btw do note: I edited the resource, I havent set any mod now in the card configs. guess we can try to create a card-mod-theme mod for this:
and see if it is robust ? |
Got a problem with customizing fold-entity-row by card-mod-theme: Haven't registered an issue on Github yet. |
a yes, I saw that, but hadnt responded yet. I am having trouble with those classes in the first place, let alone in this particular case. I did file an issue on card-mod for my particular case, maybe you should do for yours too. |
My Home Assistant version: 2022.3.0.dev20220208
Fold-entity-row version (FROM BROWSER CONSOLE): 2.2.0
What I am doing:
editing the resource (so I am causing a bug...) hence this might also be a FR to bring back 24 px icon size.... the 32px really is way too big for my taste, and imho stands out compared to all other icons in the interface
maybe there's an additional edit I need to do, and if you would know that, please help me out?
What I expected to happen:
divider remains inside card
What happened instead:
right side overflow:
Minimal steps to reproduce:
Error messages from the browser console:
By putting an X in the boxes ([X]) below, I indicate that I:
The text was updated successfully, but these errors were encountered: