@@ -1461,26 +1461,56 @@ li.CodeMirror-hint-active {
1461
1461
1462
1462
/** NEW STYLES - @huv1k please merge into the dynamic styles branch **/
1463
1463
1464
+ /* Styles for better performance in queries (no forced relayout) */
1465
+
1464
1466
.graphiql-container .resultWrap .result-window {
1465
1467
overflow : visible;
1466
1468
max-height : none !important ;
1467
1469
}
1468
1470
1469
1471
.graphiql-container .resultWrap .result-window > div {
1470
- display : flex;
1471
- flex : 1 ;
1472
- height : 100% ;
1472
+ flex-direction : column;
1473
1473
}
1474
1474
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 {
1477
1482
position : relative;
1478
1483
display : flex;
1479
1484
flex : 1 ;
1480
1485
height : 100% ;
1481
1486
}
1482
1487
1483
- .graphiql-container .resultWrap .CodeMirror {
1488
+ .graphiql-container .resultWrap .result-window . CodeMirror {
1484
1489
height : 100% ;
1485
1490
position : absolute !important ;
1486
1491
}
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