Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -834,60 +834,61 @@ def side():
|
|
| 834 |
else:
|
| 835 |
st.warning("Please fill all fields")
|
| 836 |
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
|
|
|
| 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">
|