marcelo1126 commited on
Commit
30447cb
·
verified ·
1 Parent(s): 5d6a00e

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +8 -1
streamlit_app.py CHANGED
@@ -135,9 +135,16 @@ def _render_hero():
135
  st.markdown(
136
  """
137
  <style>
138
- html, body, [data-testid="stAppViewContainer"] {
 
 
139
  overflow-x: hidden;
 
140
  scrollbar-gutter: stable both-edges;
 
 
 
 
141
  }
142
  .main {
143
  background: radial-gradient(circle at 20% 20%, rgba(101, 80, 255, 0.08), transparent 35%),
 
135
  st.markdown(
136
  """
137
  <style>
138
+ /* Keep layout stable in fullscreen (HF embed sometimes toggles scrollbars) */
139
+ html, body {
140
+ width: 100%;
141
  overflow-x: hidden;
142
+ overflow-y: scroll; /* always show vertical scrollbar to avoid horizontal shift */
143
  scrollbar-gutter: stable both-edges;
144
+ overscroll-behavior: contain;
145
+ }
146
+ [data-testid="stAppViewContainer"] {
147
+ overflow: hidden;
148
  }
149
  .main {
150
  background: radial-gradient(circle at 20% 20%, rgba(101, 80, 255, 0.08), transparent 35%),