Fix scrolling issues on Firefox (#3332)
This commit is contained in:
parent
4a25c1ba81
commit
9b4fb2d553
3 changed files with 8 additions and 1 deletions
|
@ -241,7 +241,7 @@ export function GraphiQLInterface(props: GraphiQLInterfaceProps) {
|
||||||
</div>
|
</div>
|
||||||
<div className="graphiql-sidebar-section"></div>
|
<div className="graphiql-sidebar-section"></div>
|
||||||
</div>
|
</div>
|
||||||
<div className="graphiql-main">
|
<div className={clsx("graphiql-main", classes.main)}>
|
||||||
<div
|
<div
|
||||||
ref={pluginResize.firstRef}
|
ref={pluginResize.firstRef}
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -11,6 +11,9 @@ export const useStyles = makeStyles(
|
||||||
pre: {
|
pre: {
|
||||||
whiteSpace: "break-spaces",
|
whiteSpace: "break-spaces",
|
||||||
},
|
},
|
||||||
|
main: {
|
||||||
|
position: "relative",
|
||||||
|
},
|
||||||
scrollable: {
|
scrollable: {
|
||||||
// Overrides inline styling which breaks scroll
|
// Overrides inline styling which breaks scroll
|
||||||
// on doc explorer plugin
|
// on doc explorer plugin
|
||||||
|
|
|
@ -17,6 +17,10 @@ body {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hide-scrollbar {
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
.ellipsis {
|
.ellipsis {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
Loading…
Reference in a new issue