diff --git a/src/components/package.nim b/src/components/package.nim index 7476a35..0756720 100644 --- a/src/components/package.nim +++ b/src/components/package.nim @@ -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 diff --git a/src/pages/package.nim b/src/pages/package.nim index 073b3b4..51afea0 100644 --- a/src/pages/package.nim +++ b/src/pages/package.nim @@ -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