@@ -1461,26 +1461,56 @@ li.CodeMirror-hint-active {
14611461
14621462/** NEW STYLES - @huv1k please merge into the dynamic styles branch **/
14631463
1464+ /* Styles for better performance in queries (no forced relayout) */
1465+
14641466.graphiql-container .resultWrap .result-window {
14651467 overflow : visible;
14661468 max-height : none !important ;
14671469}
14681470
14691471.graphiql-container .resultWrap .result-window > div {
1470- display : flex;
1471- flex : 1 ;
1472- height : 100% ;
1472+ flex-direction : column;
14731473}
14741474
1475- .graphiql-container .resultWrap .result-viewer-wrapper ,
1476- .graphiql-container .resultWrap .result-viewer-wrapper .result-codemirror {
1475+ .graphiql-container .resultWrap .result-window > div ,
1476+ .graphiql-container .resultWrap .result-window .result-viewer-wrapper ,
1477+ .graphiql-container
1478+ .resultWrap
1479+ .result-window
1480+ .result-viewer-wrapper
1481+ .result-codemirror {
14771482 position : relative;
14781483 display : flex;
14791484 flex : 1 ;
14801485 height : 100% ;
14811486}
14821487
1483- .graphiql-container .resultWrap .CodeMirror {
1488+ .graphiql-container .resultWrap .result-window . CodeMirror {
14841489 height : 100% ;
14851490 position : absolute !important ;
14861491}
1492+
1493+ /* Styles for subscriptions (still slow with repaint) */
1494+
1495+ .graphiql-container .resultWrap .result-window .isSubscription {
1496+ height : auto;
1497+ overflow : auto;
1498+ }
1499+
1500+ .graphiql-container .resultWrap .result-window .isSubscription > div ,
1501+ .graphiql-container
1502+ .resultWrap
1503+ .result-window .isSubscription
1504+ .result-viewer-wrapper ,
1505+ .graphiql-container
1506+ .resultWrap
1507+ .result-window .isSubscription
1508+ .result-viewer-wrapper
1509+ .result-codemirror {
1510+ height : auto;
1511+ }
1512+
1513+ .graphiql-container .resultWrap .result-window .isSubscription .CodeMirror {
1514+ height : auto;
1515+ position : relative !important ;
1516+ }
0 commit comments