mirror of
https://github.com/daylinmorgan/nimpkgs.git
synced 2024-12-22 02:50:44 -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:
|
buildHtml:
|
||||||
tdiv(class = "flex items-center space-x-2"):
|
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: ""):
|
a(href = pkg.url, class = if pkg.deleted: "line-through text-ctp-red" else: ""):
|
||||||
text repoName.jss
|
text repoName.jss
|
||||||
|
|
||||||
|
|
|
@ -35,12 +35,12 @@ proc renderLinks(pkg: NimPackage): VNode = buildHtml(tdiv):
|
||||||
if pkg.web != "" and pkg.web != pkg.url:
|
if pkg.web != "" and pkg.web != pkg.url:
|
||||||
tdiv():
|
tdiv():
|
||||||
a(href = pkg.web, class = "flex items-center space-x-2"):
|
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
|
span: text pkg.web.noProtocol
|
||||||
if pkg.doc != "":
|
if pkg.doc != "":
|
||||||
tdiv():
|
tdiv():
|
||||||
a(href = pkg.doc, class = "flex items-center space-x-2"):
|
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
|
span: text pkg.doc.noProtocol
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue