Hi.
I am new to Panel. Thank you for it, and for your patience
I have created a layout with a banner and an accordion, like so:
pn.Column (*[
self._banner(),
pn.Accordion(
active=[0], header_background='white',
*[tuple((
f'Features such as {fig_row[0].name}, {fig_row[-1].name}',
pn.pane.Bokeh(row(fig_row)),
))
for fig_row in figs
]
),
])
and it works for me. I get a result that looks something like this:
Now this is OK as far as the functionality is concerned, but I would like to change the styling:
- all accordion headers should be as wide as the widest header; or, if that is hard to do, some fixed width I can calculate in advance.
- when a header is opened, that one header can become “thinner”, that is to say it’s height could be reduced.
I looked around and could not find a document that explained how to do such things. Can you point me in the right direction?
Thank you!
GPN