Skip to content

Commit

Permalink
Fix overflow on detail elements with long paths (#414)
Browse files Browse the repository at this point in the history
Prevent file path wrapping and add a horizontal scroll bar if the
modified files or source patterns are long. Eventually, we should relax
the maximum width on rule blocks to reduce the need for this, but for
now, this is better than text breaking out of the container.
  • Loading branch information
bluekeyes authored May 2, 2022
1 parent 7a24083 commit 1eb0e44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions server/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,8 @@ details summary > * {
font-size: 0.8125rem;
}

.whitespace-nowrap {
white-space: nowrap;
}

/* end custom utilities */
2 changes: 1 addition & 1 deletion server/templates/details.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{{if (or .PredicateResults (hasRequires .Requires))}}
<details class="bg-light-gray5 p-2 mt-2 text-sm">
<summary class="text-dark-gray3 font-semibold">Details</summary>
<div class="border-t border-light-gray3 mt-2">
<div class="border-t border-light-gray3 mt-2 overflow-x-auto whitespace-nowrap">
{{if .PredicateResults}}
<div class="pt-2">
{{template "result-predicates-details" .}}
Expand Down

0 comments on commit 1eb0e44

Please sign in to comment.