chrissoria commited on
Commit
e192da8
·
1 Parent(s): 1b5a4a6

Make Try Example Dataset button match file uploader height

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -1016,6 +1016,12 @@ h1 {
1016
  color: #D4872C;
1017
  }
1018
 
 
 
 
 
 
 
1019
  .stButton > button:hover {
1020
  transform: translateY(-1px);
1021
  box-shadow: 0 4px 12px rgba(232, 163, 60, 0.3);
@@ -1240,9 +1246,11 @@ with col_input:
1240
  key="survey_file"
1241
  )
1242
  with example_col:
1243
- st.markdown("<div style='height: 58px;'></div>", unsafe_allow_html=True) # Align with Browse button
1244
- if st.button("Try Example Dataset", key="example_btn"):
 
1245
  st.session_state.example_loaded = True
 
1246
 
1247
  columns = []
1248
  df = None
 
1016
  color: #D4872C;
1017
  }
1018
 
1019
+ /* Tall button for example dataset (matches file uploader height) */
1020
+ .tall-button .stButton > button {
1021
+ min-height: 107px;
1022
+ border-radius: 12px;
1023
+ }
1024
+
1025
  .stButton > button:hover {
1026
  transform: translateY(-1px);
1027
  box-shadow: 0 4px 12px rgba(232, 163, 60, 0.3);
 
1246
  key="survey_file"
1247
  )
1248
  with example_col:
1249
+ st.markdown("<div style='height: 27px;'></div>", unsafe_allow_html=True) # Match "Upload Data" label height
1250
+ st.markdown('<div class="tall-button">', unsafe_allow_html=True)
1251
+ if st.button("Try Example Dataset", key="example_btn", use_container_width=True):
1252
  st.session_state.example_loaded = True
1253
+ st.markdown('</div>', unsafe_allow_html=True)
1254
 
1255
  columns = []
1256
  df = None