lanna_lalala;- commited on
Commit ·
3997e98
1
Parent(s): 83c08a0
update games
Browse files
phase/Student_view/games/MoneyMatch.py
CHANGED
|
@@ -20,7 +20,7 @@ def _safe_image(path: str, *, caption: str = ""):
|
|
| 20 |
if not os.path.exists(path):
|
| 21 |
st.warning(f"Image not found: {Path(path).name}. Button still works.")
|
| 22 |
return False
|
| 23 |
-
st.image(path,
|
| 24 |
return True
|
| 25 |
|
| 26 |
# ---------- state helpers ----------
|
|
|
|
| 20 |
if not os.path.exists(path):
|
| 21 |
st.warning(f"Image not found: {Path(path).name}. Button still works.")
|
| 22 |
return False
|
| 23 |
+
st.image(path, use_container_width=True, caption=caption)
|
| 24 |
return True
|
| 25 |
|
| 26 |
# ---------- state helpers ----------
|
phase/Student_view/games/budgetbuilder.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
from utils import db as dbapi
|
| 5 |
-
|
| 6 |
|
| 7 |
def show_budget_builder():
|
| 8 |
# Add custom CSS for improved styling
|
|
|
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
from utils import db as dbapi
|
| 5 |
+
|
| 6 |
|
| 7 |
def show_budget_builder():
|
| 8 |
# Add custom CSS for improved styling
|