Wajahat698 commited on
Commit
31b0a08
·
verified ·
1 Parent(s): 9b832af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +55 -54
app.py CHANGED
@@ -834,60 +834,61 @@ def side():
834
  else:
835
  st.warning("Please fill all fields")
836
 
837
- tooltip_css = """
838
- <style>
839
- .tooltip-container {
840
- position: relative;
841
- display: inline-block;
842
- vertical-align: top;
843
- margin-top: -15px;
844
- }
845
-
846
-
847
-
848
- .tooltip-container .tooltiptext {
849
- visibility: hidden;
850
- max-width: 90%; /* Tooltip width */
851
- background-color: #f9f9f9;
852
- color: #333;
853
- text-align: left;
854
- border-radius: 8px;
855
- padding: 10px;
856
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
857
- position: absolute;
858
- z-index: 1000; /* Ensure tooltip is above other elements */
859
- top: 100%; /* Position below the button */
860
- left: 50%; /* Center horizontally */
861
- transform: translateX(-50%);
862
- opacity: 0;
863
- transition: opacity 0.3s ease-in-out;
864
- }
865
- .tooltip-container:hover .tooltiptext {
866
- visibility: visible;
867
- opacity: 1;
868
- }
869
-
870
- .tooltip-container button {
871
- background-color: rgb(82, 129, 134);
872
- color: white;
873
- border: none;
874
- padding: 8px 16px;
875
- font-size: 14px;
876
- border-radius: 5px;
877
- cursor: pointer;
878
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
879
- font-family: Arial, sans-serif;
880
- }
881
-
882
- .tooltip-container button:hover {
883
- background-color: rgb(70, 115, 119);
884
- }
885
- </style>
886
- """
887
-
888
- # Inject CSS
889
- st.markdown(tooltip_css, unsafe_allow_html=True)
890
- with col2:
 
891
 
892
  st.markdown("""
893
  <div class="tooltip-container">
 
834
  else:
835
  st.warning("Please fill all fields")
836
 
837
+
838
+ with col2:
839
+ tooltip_css = """
840
+ <style>
841
+ .tooltip-container {
842
+ position: relative;
843
+ display: inline-block;
844
+ vertical-align: top;
845
+ margin-top: -15px;
846
+ }
847
+
848
+
849
+
850
+ .tooltip-container .tooltiptext {
851
+ visibility: hidden;
852
+ max-width: 90%; /* Tooltip width */
853
+ background-color: #f9f9f9;
854
+ color: #333;
855
+ text-align: left;
856
+ border-radius: 8px;
857
+ padding: 10px;
858
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
859
+ position: absolute;
860
+ z-index: 1000; /* Ensure tooltip is above other elements */
861
+ top: 100%; /* Position below the button */
862
+ left: 50%; /* Center horizontally */
863
+ transform: translateX(-50%);
864
+ opacity: 0;
865
+ transition: opacity 0.3s ease-in-out;
866
+ }
867
+ .tooltip-container:hover .tooltiptext {
868
+ visibility: visible;
869
+ opacity: 1;
870
+ }
871
+
872
+ .tooltip-container button {
873
+ background-color: rgb(82, 129, 134);
874
+ color: white;
875
+ border: none;
876
+ padding: 8px 16px;
877
+ font-size: 14px;
878
+ border-radius: 5px;
879
+ cursor: pointer;
880
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
881
+ font-family: Arial, sans-serif;
882
+ }
883
+
884
+ .tooltip-container button:hover {
885
+ background-color: rgb(70, 115, 119);
886
+ }
887
+ </style>
888
+ """
889
+
890
+ # Inject CSS
891
+ st.markdown(tooltip_css, unsafe_allow_html=True)
892
 
893
  st.markdown("""
894
  <div class="tooltip-container">