mirror of
https://github.com/daylinmorgan/nimpkgs.git
synced 2024-12-21 18:50:43 -06:00
fix: don't shrink icons on big links
This commit is contained in:
parent
633bbf5e3e
commit
4bcd6b0f4e
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ proc projectUrl*(pkg: NimPackage): VNode =
|
|||
|
||||
buildHtml:
|
||||
tdiv(class = "flex items-center space-x-2"):
|
||||
tdiv(class = icon.jss)
|
||||
tdiv(class = icon.jss & " shrink-0")
|
||||
a(href = pkg.url, class = if pkg.deleted: "line-through text-ctp-red" else: ""):
|
||||
text repoName.jss
|
||||
|
||||
|
|
|
@ -35,12 +35,12 @@ proc renderLinks(pkg: NimPackage): VNode = buildHtml(tdiv):
|
|||
if pkg.web != "" and pkg.web != pkg.url:
|
||||
tdiv():
|
||||
a(href = pkg.web, class = "flex items-center space-x-2"):
|
||||
tdiv(class = "i-mdi-web inline-block")
|
||||
tdiv(class = "i-mdi-web shrink-0")
|
||||
span: text pkg.web.noProtocol
|
||||
if pkg.doc != "":
|
||||
tdiv():
|
||||
a(href = pkg.doc, class = "flex items-center space-x-2"):
|
||||
tdiv(class = "i-mdi-file-outline inline-block")
|
||||
tdiv(class = "i-mdi-file-outline shrink-0")
|
||||
span: text pkg.doc.noProtocol
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue