samin commited on
Commit
ee000dc
Β·
verified Β·
1 Parent(s): 7ce0d4d

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -2
src/streamlit_app.py CHANGED
@@ -104,12 +104,15 @@ def _display_images(urls, caption_prefix="", max_per_row=3):
104
  )
105
 
106
  # ──────────────────────────────────────────────────────────────────────────────
107
- # Global CSS
108
  # ──────────────────────────────────────────────────────────────────────────────
109
  def _inject_css():
110
  css = """
111
  <style>
112
- .block-container { padding-top: 0.75rem; }
 
 
 
113
  [data-testid="stImage"] img {
114
  width: 100%;
115
  height: auto;
 
104
  )
105
 
106
  # ──────────────────────────────────────────────────────────────────────────────
107
+ # Global CSS (adds top padding for HF Space header)
108
  # ──────────────────────────────────────────────────────────────────────────────
109
  def _inject_css():
110
  css = """
111
  <style>
112
+ /* Offset for HF Spaces top bar (~60–70px) so the main title is visible */
113
+ .block-container { padding-top: 5rem; }
114
+ h1:first-of-type { margin-top: 0; }
115
+
116
  [data-testid="stImage"] img {
117
  width: 100%;
118
  height: auto;