Skip to content

Commit

Permalink
Fix database download buttons rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 13, 2025
1 parent fac9812 commit e38cceb
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/aiidalab_qe/app/result/components/summary/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,27 @@ def _render_summary(self):
)
settings_summary.add_class("summary-panel")

self.output_download_help = ipw.HTML("""
<div style="line-height: 1.4; margin: 0; margin-bottom: 10px;">
<h2>Download the data</h2>
Once the workflow is finished, you can download raw data (i.e. input
and output files) and/or the AiiDA archive (ready to be shared or
imported into another AiiDA profile).
</div>
""")

self.output_download_container = ipw.VBox(
children=[
self.output_download_help,
ipw.HTML("""
<div style="line-height: 140%; margin: 0; margin-bottom: 10px;">
<h2>Download the data</h2>
Once the workflow is finished, you can download raw data
(i.e. input and output files) and/or the AiiDA archive
(ready to be shared or imported into another AiiDA profile).
<div style="line-height: 1.4">
Download buttons will appear here when available.
</div>
"""),
ipw.HTML("Download buttons will appear here when available."),
],
)
self.output_download_container.add_class("summary-panel")
self._render_download_widget()

container = ipw.HBox(
children=[
Expand Down Expand Up @@ -77,7 +84,7 @@ def _render_download_widget(self):
output_download_widget = WorkChainOutputs(node=process_node)
output_download_widget.layout.width = "100%"
self.output_download_container.children = [
self.output_download_container.children[0], # type: ignore
self.output_download_help,
output_download_widget,
]
self.has_download_widget = True

0 comments on commit e38cceb

Please sign in to comment.