Spaces:
Running
Running
Update streamlit_app.py
Browse files- streamlit_app.py +0 -14
streamlit_app.py
CHANGED
|
@@ -27,20 +27,6 @@ if "_page_config_set" not in st.session_state:
|
|
| 27 |
# ---------- 2️⃣ Load environment ----------
|
| 28 |
load_dotenv()
|
| 29 |
|
| 30 |
-
# ---------- 3️⃣ Sticky‑video CSS ----------
|
| 31 |
-
sticky_css = """
|
| 32 |
-
<style>
|
| 33 |
-
[data-testid="stSidebar"] video {
|
| 34 |
-
position: sticky; /* stay fixed while scrolling */
|
| 35 |
-
top: 1rem; /* distance from top of viewport */
|
| 36 |
-
max-height: 30vh; /* limit height to 30 % of viewport */
|
| 37 |
-
width: 100%; /* fill sidebar width */
|
| 38 |
-
border-radius: 4px; /* optional rounded corners */
|
| 39 |
-
}
|
| 40 |
-
</style>
|
| 41 |
-
"""
|
| 42 |
-
st.markdown(sticky_css, unsafe_allow_html=True)
|
| 43 |
-
|
| 44 |
# ----------------------------------------------------------------------
|
| 45 |
# Configuration & constants
|
| 46 |
# ----------------------------------------------------------------------
|
|
|
|
| 27 |
# ---------- 2️⃣ Load environment ----------
|
| 28 |
load_dotenv()
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
# ----------------------------------------------------------------------
|
| 31 |
# Configuration & constants
|
| 32 |
# ----------------------------------------------------------------------
|