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

Make default width of sidebar match default width of components #2223

Closed
MarcSkovMadsen opened this issue Apr 20, 2021 · 0 comments · Fixed by #2301
Closed

Make default width of sidebar match default width of components #2223

MarcSkovMadsen opened this issue Apr 20, 2021 · 0 comments · Fixed by #2301
Labels
type: enhancement Minor feature or improvement to an existing feature
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Apr 20, 2021

Panel: 0.11.3

Going through the Panel gallery and wrapping things in Templates I can see that the default sidebar width of 300px of Templates does not fit the default widget of Panel components.

An example is the stocks_plotly.ipynb example that looks like

image

when adding

pn.template.FastListTemplate(site="Panel", title="Plotly Stock Explorer", sidebar=[ticker, window], main=[row[1]]).servable();

The consequence is friction and more work for users. They have to specify a fixed width of 250px or set sizing_mode='responsive'.

Solution

Increase the default sidebar width of all templates to wrap fixed width widgets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants