Skip to content

Commit

Permalink
Merge pull request #295 from maxfordham/output-bug-fixes
Browse files Browse the repository at this point in the history
🐛 Clear output after file download triggered
  • Loading branch information
ollyhensby authored Mar 7, 2024
2 parents bd1e818 + cb7ec8d commit dedf23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ipyautoui/custom/filedownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def trigger_download(content_b64: str, fname: str, output, kind: str = "text/jso
print("---")
clear_output()
display(HTML(f"<script>{js_code}</script>"))
clear_output()


class _Base(w.VBox):
Expand Down
2 changes: 1 addition & 1 deletion src/ipyautoui/custom/svgspinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _complete(self, change):
def __init__(self, path_svg=PATH_SVG):
super().__init__()
self.path_svg = path_svg
self.out = w.Output()
self.out = w.Output(layout=dict(width="25px"))
self.children = [self.out]
self.display_spinner()

Expand Down

0 comments on commit dedf23b

Please sign in to comment.