Pārlūkot izejas kodu

tweak github badge position on post pages

Thomas Buck 7 mēnešus atpakaļ
vecāks
revīzija
15400fac58
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      macros.py

+ 1
- 1
macros.py Parādīt failu

@@ -94,7 +94,7 @@ def githubCommitBadge(p, showInline = False):
94 94
         if len(linkParts) >= 5:
95 95
             ret += "<a href=\"" + link + "\"><img "
96 96
             if showInline:
97
-                ret += "style =\"vertical-align: top;\" "
97
+                ret += "style =\"vertical-align: middle; padding-bottom: 0.25em;\" "
98 98
             ret += "src=\"https://img.shields.io/github/last-commit/"
99 99
             ret += linkParts[3] + "/" + linkParts[4]
100 100
             ret += ".svg?logo=git&style=flat\" /></a>"

Notiek ielāde…
Atcelt
Saglabāt