Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 14, 2025
1 parent a840676 commit 140d204
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/aiidalab_qe/app/result/components/status/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def _render(self):
self.to_advanced_view_button.on_click(self._switch_to_advanced_view)

simplified_tree_container = ipw.VBox(
children=[self.simplified_process_tree],
children=[
self.simplified_process_tree,
],
)

simplified_tree_node_view_container = ipw.VBox(
Expand Down
13 changes: 9 additions & 4 deletions src/aiidalab_qe/app/static/styles/status.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
}
}

.simplified-view .widget-button {
min-height: 28px;
}

.filename-display {
min-height: 32px;
}

/* Process tree */

.rolling-output {
Expand Down Expand Up @@ -50,10 +58,6 @@
line-height: 1.5;
}

.simplified-process-tree .widget-button {
height: fit-content;
}

.simplified-process-tree .tree-node-toggle:focus:enabled,
.simplified-process-tree .tree-node-toggle:hover:enabled,
.simplified-process-tree .tree-node-toggle:active:enabled,
Expand Down Expand Up @@ -96,6 +100,7 @@

.simplified-process-tree .calculation-link {
color: var(--color-link);
margin: 0 2px;
}

.simplified-process-tree .calculation-link:hover:enabled,
Expand Down
1 change: 1 addition & 0 deletions src/aiidalab_qe/common/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def __init__(self, max_width=None, **kwargs):
self.max_width = max_width
self._html = ipw.HTML()
super().__init__([self._html], **kwargs)
self.add_class("filename-display")

@traitlets.observe("value")
def _observe_filename(self, change):
Expand Down

0 comments on commit 140d204

Please sign in to comment.