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 text not aligned center vertically when changing the height. #6093

Closed
MarcSkovMadsen opened this issue Dec 20, 2023 · 2 comments · Fixed by #6101
Closed

FileDownload text not aligned center vertically when changing the height. #6093

MarcSkovMadsen opened this issue Dec 20, 2023 · 2 comments · Fixed by #6101
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Dec 20, 2023

For some unknown reason the FileDownload button has a different height than other buttons. This makes it hard to get things to align and look beautiful.

And if you change the height, the text does not align center vertically.

import panel as pn

pn.extension()

download = pn.widgets.FileDownload()
download_height = pn.widgets.FileDownload(height=31)
button = pn.widgets.Button(name="Click Me")

pn.Row(
    download, download_height, button
).servable()

image

Additional Context

I would be using this with the Fast templates. So a solution should also work there.

If someone has a (css) workaround, then that would also be appreciated for now.

@MarcSkovMadsen MarcSkovMadsen added TRIAGE Default label for untriaged issues type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels Dec 20, 2023
@MarcSkovMadsen MarcSkovMadsen added this to the next milestone Dec 20, 2023
@philippjfr philippjfr modified the milestones: next, v1.4.0 Dec 20, 2023
@philippjfr
Copy link
Member

Yep this has annoyed me too.

@philippjfr philippjfr modified the milestones: v1.4.0, v1.3.6 Dec 20, 2023
@philippjfr
Copy link
Member

Found the issue, fix coming in 1.3.6.

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