Anne31415 commited on
Commit
0bb013f
·
1 Parent(s): 77070ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -27,7 +27,7 @@ def cloud_button(label, key=None, color=None):
27
  button_id = f"cloud-button-{key or label}"
28
  color_class = f"color-{color}" if color else ""
29
  cloud_button_html = f"""
30
- <div class="cloud {color_class}" id="{button_id}">
31
  <div class="circle small"></div>
32
  <div class="circle medium"></div>
33
  <div class="circle large"></div>
@@ -38,13 +38,13 @@ def cloud_button(label, key=None, color=None):
38
  <style>
39
  .cloud {{
40
  position: relative;
41
- display: inline-block;
42
  cursor: pointer;
43
  user-select: none;
44
- margin-right: 20px; /* Add space between cloud buttons */
45
  }}
46
  .rectangle {{
47
- width: 120px;
48
  height: 60px;
49
  background-color: white;
50
  border-radius: 30px;
@@ -56,6 +56,7 @@ def cloud_button(label, key=None, color=None):
56
  justify-content: center;
57
  font-size: 16px;
58
  font-weight: bold;
 
59
  transition: background-color 0.4s;
60
  }}
61
  .circle {{
 
27
  button_id = f"cloud-button-{key or label}"
28
  color_class = f"color-{color}" if color else ""
29
  cloud_button_html = f"""
30
+ <div class="cloud {color_class}" id="{button_id}" style="display: inline-block; margin-bottom: 20px;">
31
  <div class="circle small"></div>
32
  <div class="circle medium"></div>
33
  <div class="circle large"></div>
 
38
  <style>
39
  .cloud {{
40
  position: relative;
41
+ display: inline-flex;
42
  cursor: pointer;
43
  user-select: none;
44
+ margin-right: 20px;
45
  }}
46
  .rectangle {{
47
+ min-width: 120px;
48
  height: 60px;
49
  background-color: white;
50
  border-radius: 30px;
 
56
  justify-content: center;
57
  font-size: 16px;
58
  font-weight: bold;
59
+ padding: 0 20px;
60
  transition: background-color 0.4s;
61
  }}
62
  .circle {{