since the standard tile card doesn’t support vertical slider feature for covers I try to use lovelace-more-info-card CSS styling it with Card-mod especially hiding elements of the more-info dialog that are not needed.
So far I was only able to hide the state-card-content element by using:
Unfortunately the rest of the unneeded elements (ha-more-info-state-header, ha-icon-button-group) simply do not get hidden with similar approach. I’m not sure if it’s because of the #shadow-root(s) with no part attribute defined on the parent level (to be able to use in CSS the ::part solution) or because of something else.
Does anyone have a working solution for this or any hint on what am I doing wrong?
Did you ever find a method of achieving this? I’m having exactly the same issue when trying to use more-info-card with scripts, and can’t find any way to hide the additional sections.
For the sake of completeness (and for future reference) I thought I’d come back and post the code for scripts, based on the good work here. The following hides everything apart from the list of fields (the title “Run script” is also hidden) and the control buttons (Cancel / Run).