ApsidalSolid4 commited on
Commit
e2edecd
·
verified ·
1 Parent(s): 7361b7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -7
app.py CHANGED
@@ -780,11 +780,11 @@ def create_interface():
780
  color: white !important;
781
  }
782
 
783
- /* Make upload button container match radio button container size */
784
  .file-upload-container {
785
  margin-left: 15px;
786
  width: 150px;
787
- height: 40px;
788
  display: inline-block;
789
  vertical-align: middle;
790
  position: relative;
@@ -796,7 +796,9 @@ def create_interface():
796
  .file-upload-container p,
797
  .file-upload-container svg,
798
  .file-upload-container [data-testid="chunkFileDropArea"],
799
- .file-upload-container [data-testid="droparea"] {
 
 
800
  display: none !important;
801
  }
802
 
@@ -806,7 +808,7 @@ def create_interface():
806
  top: 0 !important;
807
  left: 0 !important;
808
  width: 100% !important;
809
- height: 40px !important;
810
  padding: 0 15px !important;
811
  background-color: #f0f0f0 !important;
812
  border: 1px solid #d9d9d9 !important;
@@ -815,6 +817,7 @@ def create_interface():
815
  align-items: center !important;
816
  justify-content: center !important;
817
  margin: 0 !important;
 
818
  }
819
 
820
  /* Style the button text */
@@ -830,14 +833,21 @@ def create_interface():
830
  background-color: #e0e0e0 !important;
831
  }
832
 
 
 
 
 
 
833
  /* Hide any additional elements that might appear */
834
  .file-upload-container * {
835
  margin: 0 !important;
836
  }
837
 
838
- /* Hide the file selection area */
839
- .file-upload-container div[data-testid="block"] > div[data-testid="droparea"] {
840
- display: none !important;
 
 
841
  }
842
  """
843
 
 
780
  color: white !important;
781
  }
782
 
783
+ /* Make upload button container match radio button container size but taller */
784
  .file-upload-container {
785
  margin-left: 15px;
786
  width: 150px;
787
+ height: 46px; /* Increased from 40px to 46px for better alignment */
788
  display: inline-block;
789
  vertical-align: middle;
790
  position: relative;
 
796
  .file-upload-container p,
797
  .file-upload-container svg,
798
  .file-upload-container [data-testid="chunkFileDropArea"],
799
+ .file-upload-container [data-testid="droparea"],
800
+ .file-upload-container div[data-testid="block"] > div[data-testid="droparea"],
801
+ .file-upload-container .upload-button {
802
  display: none !important;
803
  }
804
 
 
808
  top: 0 !important;
809
  left: 0 !important;
810
  width: 100% !important;
811
+ height: 46px !important; /* Increased from 40px to 46px */
812
  padding: 0 15px !important;
813
  background-color: #f0f0f0 !important;
814
  border: 1px solid #d9d9d9 !important;
 
817
  align-items: center !important;
818
  justify-content: center !important;
819
  margin: 0 !important;
820
+ z-index: 10 !important; /* Ensure this is on top */
821
  }
822
 
823
  /* Style the button text */
 
833
  background-color: #e0e0e0 !important;
834
  }
835
 
836
+ /* This is critical - hide any other elements that might be causing the overlap */
837
+ .file-upload-container > div:not(:last-child) {
838
+ display: none !important;
839
+ }
840
+
841
  /* Hide any additional elements that might appear */
842
  .file-upload-container * {
843
  margin: 0 !important;
844
  }
845
 
846
+ /* Explicitly make sure the Upload Document text is visible and centered */
847
+ .file-upload-container label {
848
+ display: block !important;
849
+ text-align: center !important;
850
+ width: 100% !important;
851
  }
852
  """
853