Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,6 +64,9 @@ def cloud_button(label, key=None, color=None):
|
|
64 |
width: {circle_size}px;
|
65 |
height: {circle_size}px;
|
66 |
margin: 0 -{circle_size // 4}px;
|
|
|
|
|
|
|
67 |
z-index: 1;
|
68 |
}}
|
69 |
.color-1 .wrapper, .color-1 .circle {{ background-color: #FFA07A; }}
|
@@ -79,10 +82,6 @@ def cloud_button(label, key=None, color=None):
|
|
79 |
st.markdown(cloud_button_html, unsafe_allow_html=True)
|
80 |
|
81 |
|
82 |
-
cloud_button("Short Text", color="1")
|
83 |
-
cloud_button("This is a longer piece of text", color="2")
|
84 |
-
cloud_button("This is an even longer piece of text to test the cloud button", color="3")
|
85 |
-
|
86 |
|
87 |
cloud_button("Short Text", color="1")
|
88 |
cloud_button("This is a longer piece of text", color="2")
|
|
|
64 |
width: {circle_size}px;
|
65 |
height: {circle_size}px;
|
66 |
margin: 0 -{circle_size // 4}px;
|
67 |
+
position: absolute;
|
68 |
+
top: 50%;
|
69 |
+
transform: translateY(-50%);
|
70 |
z-index: 1;
|
71 |
}}
|
72 |
.color-1 .wrapper, .color-1 .circle {{ background-color: #FFA07A; }}
|
|
|
82 |
st.markdown(cloud_button_html, unsafe_allow_html=True)
|
83 |
|
84 |
|
|
|
|
|
|
|
|
|
85 |
|
86 |
cloud_button("Short Text", color="1")
|
87 |
cloud_button("This is a longer piece of text", color="2")
|