Update app.py
Browse files
app.py
CHANGED
|
@@ -854,17 +854,17 @@ def handle_message(event):
|
|
| 854 |
"type": "bubble", "size": "mega",
|
| 855 |
"header": {
|
| 856 |
"type": "box", "layout": "horizontal",
|
| 857 |
-
"backgroundColor": color, "paddingAll": "
|
| 858 |
"contents": [
|
| 859 |
-
{"type": "text", "text": medal, "size": "xxl", "flex": 1, "align": "center"},
|
| 860 |
-
{"type": "box", "layout": "vertical", "flex": 4, "contents": [
|
| 861 |
-
{"type": "text", "text": f"排行第 {item['rank']} 名", "size": "xl", "color": "#FFFFFF", "weight": "bold"},
|
| 862 |
-
{"type": "text", "text": item["tag"], "size": "sm", "color": "#FFFFFF"}
|
| 863 |
]}
|
| 864 |
]
|
| 865 |
},
|
| 866 |
"body": {
|
| 867 |
-
"type": "box", "layout": "vertical",
|
| 868 |
"contents": [
|
| 869 |
{"type": "text", "text": item["name"], "weight": "bold", "size": "lg", "wrap": True, "color": "#111111"},
|
| 870 |
{"type": "text", "text": item["brand"], "size": "sm", "color": "#8c8c8c", "margin": "sm"},
|
|
|
|
| 854 |
"type": "bubble", "size": "mega",
|
| 855 |
"header": {
|
| 856 |
"type": "box", "layout": "horizontal",
|
| 857 |
+
"backgroundColor": color, "paddingAll": "20px",
|
| 858 |
"contents": [
|
| 859 |
+
{"type": "text", "text": medal, "size": "xxl", "flex": 1, "align": "center", "gravity": "center"},
|
| 860 |
+
{"type": "box", "layout": "vertical", "flex": 4, "justifyContent": "center", "contents": [
|
| 861 |
+
{"type": "text", "text": f"排行第 {item['rank']} 名", "size": "xl", "color": "#FFFFFF", "weight": "bold", "align": "start"},
|
| 862 |
+
{"type": "text", "text": item["tag"], "size": "sm", "color": "#FFFFFF", "align": "start", "margin": "xs"}
|
| 863 |
]}
|
| 864 |
]
|
| 865 |
},
|
| 866 |
"body": {
|
| 867 |
+
"type": "box", "layout": "vertical", "paddingAll": "20px",
|
| 868 |
"contents": [
|
| 869 |
{"type": "text", "text": item["name"], "weight": "bold", "size": "lg", "wrap": True, "color": "#111111"},
|
| 870 |
{"type": "text", "text": item["brand"], "size": "sm", "color": "#8c8c8c", "margin": "sm"},
|