Skip to content

Commit

Permalink
Avoid next-nowrap as it breaks layout
Browse files Browse the repository at this point in the history
See for example pkg mapscanner
  • Loading branch information
jeroen committed Jul 4, 2024
1 parent ca037a3 commit 7801297
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions static/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,14 @@ canvas {
height: 1000px;
}

p.overflow-x-invisible {
overflow-x: auto;
scrollbar-width: none;
}
p.overflow-x-invisible::-webkit-scrollbar {
display: none;
}
/* Using nowrap for large screens breaks the layout, see pkg mapscanner */
@media (max-width: 575px) {
p.overflow-x-invisible {
white-space: nowrap;
overflow-x: auto;
scrollbar-width: none;
}
p.overflow-x-invisible::-webkit-scrollbar {
display: none;
}
}
2 changes: 1 addition & 1 deletion views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ html
link(rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.2/css/bootstrap.min.css')
link(rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css')
block after_head
link(rel='stylesheet' href='/layout.css')
link(rel='stylesheet' href='/layout.css?nocache=1')
body
header.mb-3.border-bottom.bg-body-tertiary
.container(style='max-width: 1440px')
Expand Down
2 changes: 1 addition & 1 deletion views/pkginfo.pug
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ block content
p
| Authors:
span.card-text.text-dark.package-details-author.ms-1 #{Author}
p.text-nowrap.overflow-x-invisible
p.overflow-x-invisible
a.fa.fa-file-code.package-details-logs.text-dark.text-decoration-none.grow-on-over(style='width: 20px' href=_buildurl)
a.package-details-source(href=`/src/contrib/${Package}_${Version}.tar.gz`) #{Package}_#{Version}.tar.gz
br
Expand Down

0 comments on commit 7801297

Please sign in to comment.