pufanyi commited on
Commit
af53529
1 Parent(s): b351f32

Refactor about.py to update icon alignment and improve code readability

Browse files
Files changed (1) hide show
  1. 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; vertical-align: middle;">'
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 == "":