Spaces:
Runtime error
Runtime error
Refactor about.py to update icon alignment and improve code readability
Browse files- src/about.py +1 -1
src/about.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_link(item): #name, icon, url):
|
|
| 37 |
icon = item.get("icon", None)
|
| 38 |
url = item.get("url", "#")
|
| 39 |
if icon.endswith(".svg"):
|
| 40 |
-
icon_tag = f'<img src="{icon}" alt="{name}" style="height: 24px; width: 24px;
|
| 41 |
elif icon.startswith("fa-"):
|
| 42 |
icon_tag = f'<i class="{icon}"></i>'
|
| 43 |
elif not icon or icon == "":
|
|
|
|
| 37 |
icon = item.get("icon", None)
|
| 38 |
url = item.get("url", "#")
|
| 39 |
if icon.endswith(".svg"):
|
| 40 |
+
icon_tag = f'<img src="{icon}" alt="{name}" style="height: 24px; width: 24px; display: inline;">'
|
| 41 |
elif icon.startswith("fa-"):
|
| 42 |
icon_tag = f'<i class="{icon}"></i>'
|
| 43 |
elif not icon or icon == "":
|