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

MaterialTemplate missing padding at the bottom #6068

Closed
cdeil opened this issue Dec 17, 2023 · 0 comments · Fixed by #6075
Closed

MaterialTemplate missing padding at the bottom #6068

cdeil opened this issue Dec 17, 2023 · 0 comments · Fixed by #6075
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@cdeil
Copy link
Contributor

cdeil commented Dec 17, 2023

ALL software version info

panel 1.3.4
bokeh 3.3.2

Description of expected behavior and the observed behavior

The MaterialTemplate has no padding at the bottom. If there's content larger than the browser window size and one scrolls down the content extends right to the bottom of the window and (in our case figure axis labels) are hard to read.

In contrast the BootstramTemplate has some default padding at the bottom and looks better.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn

pn.extension(design="material")

template = pn.template.MaterialTemplate()
a = pn.pane.Markdown("", styles={"background": "red"}, width=300, height=200)
b = pn.pane.Markdown("", styles={"background": "blue"}, width=300, height=200)
s = pn.layout.Spacer(height=100)
template.main.extend([a, b])
template.servable()

Workaround could be to put a Spacer(20) at the bottom of every page, but it would be nicer if the template had default padding at the bottom.

MaterialTemplate is missing the padding at the bottom:

Screenshot 2023-12-17 at 21 22 34

BootstrapTemplate has the padding at the bottom:

Screenshot 2023-12-17 at 21 22 12
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Dec 17, 2023
@philippjfr philippjfr added this to the v1.3.5 milestone Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants