Skip to content

Commit

Permalink
Add header to OptimadeQueryWidget. (#247)
Browse files Browse the repository at this point in the history
Fixes #242.
  • Loading branch information
csadorf committed Oct 4, 2021
1 parent 13e93ce commit e6a951f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiidalab_widgets_base/databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def __init__(
title: str = None,
**kwargs,
) -> None:
providers_header = ipw.HTML("<h4>Select a provider</h4>")
providers = OptimadeQueryProviderWidget(
embedded=embedded,
width_ratio=kwargs.pop("width_ratio", None),
Expand All @@ -207,7 +208,7 @@ def __init__(
layout = kwargs.pop("layout", {"width": "auto", "height": "auto"})

super().__init__(
children=(providers, filters),
children=(providers_header, providers, filters),
layout=layout,
**kwargs,
)
Expand Down

0 comments on commit e6a951f

Please sign in to comment.