Skip to content

Commit

Permalink
fix: don't shrink icons on big links
Browse files Browse the repository at this point in the history
  • Loading branch information
daylinmorgan committed Nov 25, 2023
1 parent 633bbf5 commit 4bcd6b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/package.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/pages/package.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4bcd6b0

Please sign in to comment.