We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#6101 made it possible to adjust the height og the FileDownload. Unfortunately the icon and text is no longer aligned horizontally.
height
FileDownload
icon
text
import panel as pn pn.extension(design="bootstrap") n=4 layout=pn.Column() for i in range(n): row = pn.Row() layout.append(row) for j in range(n): download = pn.widgets.FileDownload(height=50+25*j, width=125+25*j, file=__file__, icon="download", button_type="primary") row.append(download) layout.servable()
The text was updated successfully, but these errors were encountered:
I had the same issue after upgrading to 1.3.6. It seems that display: inline; in .bk-btn a element will fix the issue.
display: inline;
.bk-btn a
import panel as pn pn.extension(design="bootstrap") n = 4 stylesheet = ".bk-btn a {display: inline;}" layout = pn.Column() for i in range(n): row = pn.Row() layout.append(row) for j in range(n): download = pn.widgets.FileDownload( height=50 + 25 * j, width=125 + 25 * j, file="script.py", icon="download", button_type="primary", stylesheets=[stylesheet], ) row.append(download) layout.servable()
I don't know much about css, but maybe a better combination exists. FYI, inline-block does not work as expected inline flex may also be okay.
inline-block
inline flex
Sorry, something went wrong.
Thank you both. Will try to get a 1.3.7 release out early next week.
Successfully merging a pull request may close this issue.
#6101 made it possible to adjust the
height
og theFileDownload
. Unfortunately theicon
andtext
is no longer aligned horizontally.The text was updated successfully, but these errors were encountered: