Skip to content

Commit

Permalink
fix: use_container_width in popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
killian31 committed Mar 16, 2024
1 parent a1ba57f commit 2049fad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
with col1:
math_menu = st.popover("Mathematics")
math_menu.page_link(
"pages/Norm_Visualizer.py", label="Norm Visualizer", use_container_width=False
"pages/Norm_Visualizer.py", label="Norm Visualizer", use_container_width=True
)
math_menu.page_link(
"pages/Parking_Problem_Solver.py",
label="Parking Problem Solver (MDP)",
use_container_width=False,
use_container_width=True,
)

with col2:
Expand All @@ -62,10 +62,10 @@
ml_menu.page_link(
"pages/Neural_Network_Separability.py",
label="Neural Network Separability",
use_container_width=False,
use_container_width=True,
)
ml_menu.page_link(
"pages/Gradient_Descent.py", label="Gradient Descent", use_container_width=False
"pages/Gradient_Descent.py", label="Gradient Descent", use_container_width=True
)

with col4:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ st.set_page_config(page_title="Your Page Title")
Then, in the `Home.py` file, add this below the right section:

```python
<section>_menu.page_link("pages/Your_Page_Title.py", label="Your Page Title")
<section>_menu.page_link(
"pages/Your_Page_Title.py",
label="Your Page Title",
use_container_width=True
)
```

Paste the following piece of code to apply the styling for buttons:
Expand Down

0 comments on commit 2049fad

Please sign in to comment.