pufanyi commited on
Commit
577338b
1 Parent(s): 0b77b16

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

Browse files
Files changed (1) hide show
  1. 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: 24px; width: 24px; display: inline;">'
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 == "":