Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prototype/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def render_sunburst(data, title: str, iqb_score: float, hierarchy_levels: int =
hierarchy_levels=hierarchy_levels,
)
add_iqb_score_annotation(fig, iqb_score)
st.plotly_chart(fig, use_container_width=True, config={"staticPlot": True})
st.plotly_chart(fig, width="stretch", config={"staticPlot": True})


def main():
Expand Down
12 changes: 6 additions & 6 deletions prototype/visualizations/ui_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def render_measurement_inputs(state: IQBAppState) -> None:
else:
render_advanced_mode_inputs(state, requirements, datasets)

if st.button("🔄 Reset to Default", use_container_width=True):
if st.button("🔄 Reset to Default", width="stretch"):
reset_manual_entry(state)
st.rerun()

Expand Down Expand Up @@ -232,7 +232,7 @@ def render_threshold_editor(state: IQBAppState) -> None:

if st.button(
"🔄 Reset Thresholds to Default",
use_container_width=True,
width="stretch",
key="reset_thresholds_btn",
):
reset_thresholds(state)
Expand Down Expand Up @@ -277,7 +277,7 @@ def render_requirement_weights_editor(state: IQBAppState) -> None:

if st.button(
"🔄 Reset Requirement Weights to Default",
use_container_width=True,
width="stretch",
key="reset_req_weights_btn",
):
reset_requirement_weights(state)
Expand Down Expand Up @@ -313,7 +313,7 @@ def render_use_case_weights_editor(state: IQBAppState) -> None:

if st.button(
"🔄 Reset Use Case Weights to Default",
use_container_width=True,
width="stretch",
key="reset_uc_weights_btn",
):
reset_use_case_weights(state)
Expand Down Expand Up @@ -377,7 +377,7 @@ def render_dataset_weights_editor(state: IQBAppState) -> None:

if st.button(
"🔄 Reset Dataset Weights to Default",
use_container_width=True,
width="stretch",
key="reset_dataset_weights_btn",
):
reset_dataset_weights(state)
Expand Down Expand Up @@ -477,4 +477,4 @@ def render_sunburst(
height=height,
)
add_iqb_score_annotation(fig, iqb_score)
st.plotly_chart(fig, use_container_width=True, config={"staticPlot": True})
st.plotly_chart(fig, width="stretch", config={"staticPlot": True})