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