Fix scrolling issues on Firefox (#3332)

This commit is contained in:
Krzysztof Żuraw 2023-03-13 10:36:04 +01:00 committed by GitHub
parent 4a25c1ba81
commit 9b4fb2d553
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -241,7 +241,7 @@ export function GraphiQLInterface(props: GraphiQLInterfaceProps) {
</div>
<div className="graphiql-sidebar-section"></div>
</div>
<div className="graphiql-main">
<div className={clsx("graphiql-main", classes.main)}>
<div
ref={pluginResize.firstRef}
style={{

View file

@ -11,6 +11,9 @@ export const useStyles = makeStyles(
pre: {
whiteSpace: "break-spaces",
},
main: {
position: "relative",
},
scrollable: {
// Overrides inline styling which breaks scroll
// on doc explorer plugin

View file

@ -17,6 +17,10 @@ body {
display: none;
}
.hide-scrollbar {
scrollbar-width: none;
}
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;