fix: don't shrink icons on big links

This commit is contained in:
Daylin Morgan 2023-11-25 00:50:02 -06:00
parent 633bbf5e3e
commit 4bcd6b0f4e
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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