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

FileDownload widget height issues #6316

Closed
TheoMathurin opened this issue Feb 7, 2024 · 2 comments · Fixed by #6362
Closed

FileDownload widget height issues #6316

TheoMathurin opened this issue Feb 7, 2024 · 2 comments · Fixed by #6362
Milestone

Comments

@TheoMathurin
Copy link
Contributor

TheoMathurin commented Feb 7, 2024

Panel 1.3.8

The parts of the button that don't hold text have a default height which is too small. The central part has dimensions that fit the label.

See example below (with "success" button type to make it more visible):

import panel as pn

filedownload = pn.widgets.FileDownload(label='Download', button_type='success', width=200)

pn.template.FastListTemplate(main=[filedownload]).servable()

image

Workaround: explicitly setting the height, here it would be 28 pixels.

@hoxbro
Copy link
Member

hoxbro commented Feb 7, 2024

I think this was introduced in #6133

@philippjfr philippjfr added this to the v1.4.0 milestone Feb 7, 2024
@TheoMathurin
Copy link
Contributor Author

In fact the FileDownload button seems to have issues with other templates and without a template too (height appears somewhat small to me, one could expect it to have the same default height as the Button widget).

image

@TheoMathurin TheoMathurin changed the title FileDownload not displayed correctly in Fast template FileDownload widget height issues Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants