Skip to content

Commit

Permalink
Merge pull request #409 from agoenergy/joAschauer/issue401
Browse files Browse the repository at this point in the history
improve "What is this?" boxes
  • Loading branch information
markushal authored Jun 3, 2024
2 parents a4dce0e + 196f7e2 commit 6057b6c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/tab_certification_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _render_scheme_info(context_data, scheme_name):


def content_certification_schemes(context_data: dict):
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_certification_schemes.md"))

helptext = "Select the certification scheme you want to know more about."
Expand Down
2 changes: 1 addition & 1 deletion app/tab_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def content_costs(
costs_per_res_gen_without_user_changes: pd.DataFrame,
costs_per_chain_without_user_changes: pd.DataFrame,
):
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_costs.md"))

with st.container(border=True):
Expand Down
2 changes: 1 addition & 1 deletion app/tab_country_fact_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _create_fact_sheet_supply_country(context_data: dict, api: PtxboaAPI):


def content_country_fact_sheets(context_data, api):
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_country_fact_sheets.md"))
with st.container(border=True):
_create_fact_sheet_demand_country(context_data)
Expand Down
2 changes: 1 addition & 1 deletion app/tab_deep_dive_countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def content_deep_dive_countries(
------
None
"""
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_deep_dive_countries.md"))

st.write("Select which country to display:")
Expand Down
2 changes: 1 addition & 1 deletion app/tab_input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def content_input_data(api: PtxboaAPI) -> None:
------
None
"""
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_input_data.md"))

with st.container(border=True):
Expand Down
2 changes: 1 addition & 1 deletion app/tab_literature.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _is_valid_url(url: str) -> bool:


def content_literature(context_data: dict):
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_literature.md"))

st.markdown("## References")
Expand Down
2 changes: 1 addition & 1 deletion app/tab_market_scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def content_market_scanning(api: PtxboaAPI, res_costs: pd.DataFrame, cd: dict) -
cd: dict
context data.
"""
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_market_scanning.md"))

# get input data:
Expand Down
2 changes: 1 addition & 1 deletion app/tab_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

def content_optimization(api: PtxboaAPI) -> None:

with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_optimization.md"))

# load netcdf file:
Expand Down
2 changes: 1 addition & 1 deletion app/tab_sustainability.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _interactive_sustainability_dimension_info(context_data: dict):


def content_sustainability(context_data: dict):
with st.expander("What is this?"):
with st.popover("*Help*", use_container_width=True):
st.markdown(read_markdown_file("md/whatisthis_sustainability.md"))

st.markdown("## Dimensions of sustainability")
Expand Down

0 comments on commit 6057b6c

Please sign in to comment.