But , the good thing is, that both have the same solution and the same styling options. The only difference is in the way you are writing it.
And the solution for the custom:button-card will be directly applicable to the button card with card-mod
So I kind of stayed here because of the way it all began.
Just started implementing popup cards using card mod and there are two areas Iâd like to adjust the following but Iâm not sure which elements in the example code in this thread will do what I want?
The border of the popup card, at the moment its only the size of the cards on it.
Reduce the height of the popup card header, its probably double the size of what it needs to be.
Could you please post a snip of the screen and maybe the code you have already? I am an absolute noob, so if I see the code and can help, I will try.
Maybe the experts can help you in the meantime already
I am moving a post I mistakenly made in hui-elements to this thread.:
Hello @Ildar_Gabdullin ,
may I ask, if your example is transferrable also to grid cards?
I tried and would have thought that I could simply replace vertical-stack with grid, but it did not work.
I am thinking that I need to replace âhi-vertical-stack-cardâ with the corresponding custom:layout-card because it comes before the grid card. But not sure if or how. Setting hui-grid-card did not work.
The problem is, that the picture is not being shown because the card is not enlarged automatically. So the picture is probably behind the grid.
I was able to get it to work by adding a button before the grid (button makes the card resize properly) but this is a dirty workaround.
I think a major reason is found in the source-code( .js of the mushroom-cards, in âcommunityâ folder) , change it there, or try with card-mod host: , or apply to either the containing card(whit-in the Chip),or âlaborateâ with chip-template(depending upon what you wanna change), or place the chip with-in fixed grid or vertical-stack/layout card etc⌠a chip is a chip, it seems a âwideâ as it is( however you can change background-color etc on the chip, with card-mod on the chip
I.e ( justify_content: etc) with card-mod could be done on the Card containing the chip" i.e layout-card, header-card etc.
Does anyone know the new correct code to change height of list inside input_select entities? I used this code before, but doesnât work since the change in 2022.3 where HA changed the format they use for lists from paper elements to mwc
I couldnât find an updated code and inspect element didnât give me a good clue. The sticky comment with all the examples hasnât been updated with the new code, so I hope someone else already figured it out.
This one is no longer supported ( itâs removed )
So if itâs a custom:card you are using, the code owner should have fixed/replaced this, if you are the âcard-ownerâ ⌠try with input-dropdown-
Itâs just an entities card where one of the entities is an input_select. So itâs a core card. I know that itâs removed, that why I ask if someone knows what the new code is to change the height.
ahh, you mean the mwc-element code, i.e. mwc-menu, mwc-select ?, or you want some other âworkaroundâ, to apply listbox-height to paper-dropdown-menu ⌠i just thought input-dropdown could be of help
Hi, sorry if my question wasnât clear. I added a screenshow below. Basically I want this list te be capped at 200 pixels. With my previous card_mod style it worked. But since HA moved from paper-elements to mwc, that code is deprecated. However, I have no clue what the correct code would be to alter the height now of the list. Itsâs just an input_select entity inside an entities card.
I was going to create a post about styling new MWC elements.
Have no mood & time for it. Will try to do it when this vile (hard to find a proper word) war ends (I hope).
Hi, I believe this changes the item height of each entry. I need the entire list to be shorter. So it should limit the selection window so it shows 5 entries max, not decrease the height of each entry individually.