瀏覽代碼

CSS edit for current tag badge

master
The Dod 1 年之前
父節點
當前提交
e077b8afb3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      mymastotag.py

+ 1
- 1
mymastotag.py 查看文件

@@ -26,7 +26,7 @@ def my_masto_tag(lang, instance, user, tag):
26 26
         for link in soup.find_all('a'):
27 27
             link['target'] = '_blank'
28 28
             if link.text.lower()==hashtag:
29
-                link['class'] = ['badge', 'bg-info', 'text-decoration-none']
29
+                link['class'] = ['badge', 'rounded-pill', 'text-bg-info', 'text-decoration-none']
30 30
             else:
31 31
                 link['class'] = ['link-info', 'text-decoration-none']
32 32
         e['description'] = str(soup)

Loading…
取消
儲存