Fix missing scrollbar in API search results (#480)

Fixes #257

Co-authored-by: Lunny Xiao <[email protected]>
This commit is contained in:
Lunny Xiao
2026-08-07 16:15:16 +00:00
committed by techknowlogick
parent 16209ed097
commit 7629c02a9a
+20
View File
@@ -118,6 +118,26 @@
height: calc(100vh - 70px) !important;
}
/* Redoc's own `SearchResultsBox` styles are broken by a stray `}` after the
`background-color` interpolation, so every declaration after it (including
`max-height`) is dropped. Without a height limit the results box grows to the
full result list height, perfect-scrollbar sees no overflow and renders no
scrollbar, and the sidebar (overflow: hidden) clips the results.
Restore the intended styles until it is fixed upstream.
Upstream PR to fix this is: https://github.com/Redocly/redoc/pull/2819
*/
.redocusaurus [role='search'] [data-role='search:results'] {
min-height: 150px;
max-height: 250px;
line-height: 1.4;
font-size: 0.9em;
}
.redocusaurus [role='search'] [data-role='search:results'] label {
padding-top: 6px;
padding-bottom: 6px;
}
.gt-hidden {
display: none;
}