milwright commited on
Commit
a268368
·
1 Parent(s): f86e826

Fix unnecessary white space in document metadata section

Browse files

- Removed extra div margin that was creating whitespace
- Modified success message display to use more compact format
- Eliminated redundant container wrapping for the success message

Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -958,10 +958,8 @@ with main_tab1:
958
  # Empty container for progress indicators - will be filled during processing
959
  progress_placeholder = st.empty()
960
 
961
- # Add space (one inch equivalent in Streamlit)
962
- st.markdown("<div style='margin-top: 72px;'></div>", unsafe_allow_html=True)
963
-
964
- # Container for document metadata (will be filled after processing)
965
  metadata_placeholder = st.empty()
966
 
967
  # Results section
@@ -1564,9 +1562,8 @@ with main_tab1:
1564
  # Close document content div
1565
  st.markdown('</div>', unsafe_allow_html=True)
1566
 
1567
- # Update the placeholder with a success message
1568
- with metadata_placeholder.container():
1569
- st.success("**Document processed successfully**")
1570
 
1571
  # Store the result in the previous results list
1572
  # Add timestamp to result for history tracking
 
958
  # Empty container for progress indicators - will be filled during processing
959
  progress_placeholder = st.empty()
960
 
961
+ # Container for success message (will be filled after processing)
962
+ # No extra spacing needed as it will be managed programmatically
 
 
963
  metadata_placeholder = st.empty()
964
 
965
  # Results section
 
1562
  # Close document content div
1563
  st.markdown('</div>', unsafe_allow_html=True)
1564
 
1565
+ # Show a compact success message without extra container space
1566
+ metadata_placeholder.success("**Document processed successfully**")
 
1567
 
1568
  # Store the result in the previous results list
1569
  # Add timestamp to result for history tracking