@midscene/visualizer 1.7.4 → 1.7.5-beta-20260420031652.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/es/component/config-selector/index.mjs +2 -2
  2. package/dist/es/component/history-selector/index.css +83 -16
  3. package/dist/es/component/history-selector/index.mjs +2 -2
  4. package/dist/es/component/playground/index.css +193 -1
  5. package/dist/es/component/playground-result/index.css +28 -0
  6. package/dist/es/component/playground-result/index.mjs +39 -54
  7. package/dist/es/component/prompt-input/index.css +165 -1
  8. package/dist/es/component/prompt-input/index.mjs +305 -130
  9. package/dist/es/component/universal-playground/index.css +47 -15
  10. package/dist/es/component/universal-playground/index.mjs +162 -102
  11. package/dist/es/utils/action-label.mjs +14 -0
  12. package/dist/es/utils/playground-utils.mjs +1 -9
  13. package/dist/es/utils/prompt-input-utils.mjs +45 -0
  14. package/dist/lib/component/config-selector/index.js +2 -2
  15. package/dist/lib/component/history-selector/index.css +83 -16
  16. package/dist/lib/component/history-selector/index.js +2 -2
  17. package/dist/lib/component/playground/index.css +193 -1
  18. package/dist/lib/component/playground-result/index.css +28 -0
  19. package/dist/lib/component/playground-result/index.js +39 -54
  20. package/dist/lib/component/prompt-input/index.css +165 -1
  21. package/dist/lib/component/prompt-input/index.js +307 -130
  22. package/dist/lib/component/universal-playground/index.css +47 -15
  23. package/dist/lib/component/universal-playground/index.js +161 -101
  24. package/dist/lib/utils/action-label.js +51 -0
  25. package/dist/lib/utils/playground-utils.js +2 -10
  26. package/dist/lib/utils/prompt-input-utils.js +82 -0
  27. package/dist/types/component/config-selector/index.d.ts +2 -0
  28. package/dist/types/component/history-selector/index.d.ts +2 -0
  29. package/dist/types/component/prompt-input/index.d.ts +2 -1
  30. package/dist/types/index.d.ts +1 -1
  31. package/dist/types/types.d.ts +50 -0
  32. package/dist/types/utils/action-label.d.ts +11 -0
  33. package/dist/types/utils/playground-utils.d.ts +6 -1
  34. package/dist/types/utils/prompt-input-utils.d.ts +24 -0
  35. package/package.json +5 -5
@@ -4,7 +4,7 @@ import setting from "../../icons/setting.mjs";
4
4
  import { useEnvConfig } from "../../store/store.mjs";
5
5
  import { alwaysRefreshScreenInfoTip, autoDismissKeyboardTip, deepLocateTip, deepThinkTip, domIncludedTip, imeStrategyTip, keyboardDismissStrategyTip, screenshotIncludedTip, trackingTip } from "../../utils/constants.mjs";
6
6
  import { getDeviceCapabilities, hasDeviceSpecificConfig } from "../../utils/device-capabilities.mjs";
7
- const ConfigSelector = ({ showDeepLocateOption = false, showDeepThinkOption = false, enableTracking = false, showDataExtractionOptions = false, hideDomAndScreenshotOptions = false, deviceType })=>{
7
+ const ConfigSelector = ({ showDeepLocateOption = false, showDeepThinkOption = false, enableTracking = false, showDataExtractionOptions = false, hideDomAndScreenshotOptions = false, deviceType, trigger })=>{
8
8
  const forceSameTabNavigation = useEnvConfig((state)=>state.forceSameTabNavigation);
9
9
  const setForceSameTabNavigation = useEnvConfig((state)=>state.setForceSameTabNavigation);
10
10
  const deepLocate = useEnvConfig((state)=>state.deepLocate);
@@ -36,7 +36,7 @@ const ConfigSelector = ({ showDeepLocateOption = false, showDeepThinkOption = fa
36
36
  trigger: [
37
37
  'click'
38
38
  ],
39
- children: /*#__PURE__*/ jsx(setting, {
39
+ children: null != trigger ? trigger : /*#__PURE__*/ jsx(setting, {
40
40
  width: 24,
41
41
  height: 24
42
42
  })
@@ -138,35 +138,102 @@
138
138
  padding: 40px 20px;
139
139
  }
140
140
 
141
- [data-theme="dark"] .history-selector .history-timestamp, [data-theme="dark"] .history-selector .history-path {
142
- color: rgba(255, 255, 255, .45);
141
+ [data-theme="dark"] .history-modal-overlay {
142
+ background: #16181d !important;
143
+ border-color: rgba(255, 255, 255, .12) !important;
144
+ box-shadow: 0 16px 40px rgba(0, 0, 0, .45) !important;
143
145
  }
144
146
 
145
- [data-theme="dark"] .history-selector .history-description {
146
- color: #f8fafd;
147
+ [data-theme="dark"] .history-modal-container {
148
+ background: #16181d !important;
147
149
  }
148
150
 
149
- [data-theme="dark"] .history-selector .history-no-items {
150
- color: rgba(255, 255, 255, .45);
151
+ [data-theme="dark"] .history-modal-container .history-modal-header .ant-typography {
152
+ color: rgba(255, 255, 255, .92) !important;
151
153
  }
152
154
 
153
- [data-theme="dark"] .history-selector .history-item:hover {
154
- background: rgba(255, 255, 255, .08);
155
+ [data-theme="dark"] .history-modal-container .history-modal-header .close-button .anticon {
156
+ color: rgba(255, 255, 255, .48);
155
157
  }
156
158
 
157
- [data-theme="dark"] .history-selector .history-item .history-clear-icon {
158
- border-color: rgba(255, 255, 255, .12);
159
+ [data-theme="dark"] .history-modal-container .history-modal-header .close-button:hover .anticon {
160
+ color: rgba(255, 255, 255, .78);
159
161
  }
160
162
 
161
- [data-theme="dark"] .history-selector .history-item .history-clear-icon:hover {
162
- border-color: #40a9ff;
163
+ [data-theme="dark"] .history-modal-container .history-search-section {
164
+ background: #16181d !important;
163
165
  }
164
166
 
165
- [data-theme="dark"] .history-selector .history-load-more {
166
- color: #1890ff;
167
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper {
168
+ color: rgba(255, 255, 255, .38);
167
169
  }
168
170
 
169
- [data-theme="dark"] .history-selector .history-load-more:hover {
170
- color: #40a9ff;
171
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper {
172
+ box-shadow: none !important;
173
+ background: rgba(255, 255, 255, .08) !important;
174
+ border-color: rgba(255, 255, 255, .12) !important;
175
+ }
176
+
177
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper .ant-input, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input-prefix, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper .ant-input-prefix, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input-clear-icon, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper .ant-input-clear-icon {
178
+ color: rgba(255, 255, 255, .72) !important;
179
+ }
180
+
181
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper .ant-input {
182
+ background: none !important;
183
+ }
184
+
185
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input::-webkit-input-placeholder {
186
+ color: rgba(255, 255, 255, .38) !important;
187
+ }
188
+
189
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input .ant-input::placeholder {
190
+ color: rgba(255, 255, 255, .38) !important;
191
+ }
192
+
193
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper .ant-input::-webkit-input-placeholder {
194
+ color: rgba(255, 255, 255, .38) !important;
195
+ }
196
+
197
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper .ant-input::placeholder {
198
+ color: rgba(255, 255, 255, .38) !important;
199
+ }
200
+
201
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input:hover, [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper:hover {
202
+ background: rgba(255, 255, 255, .12) !important;
203
+ border-color: rgba(255, 255, 255, .16) !important;
204
+ }
205
+
206
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input:focus-within {
207
+ background: rgba(255, 255, 255, .12) !important;
208
+ border-color: rgba(255, 255, 255, .16) !important;
209
+ }
210
+
211
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .search-input.ant-input-affix-wrapper:focus-within {
212
+ background: rgba(255, 255, 255, .12) !important;
213
+ border-color: rgba(255, 255, 255, .16) !important;
214
+ }
215
+
216
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .clear-button {
217
+ color: #77b7ff !important;
218
+ }
219
+
220
+ [data-theme="dark"] .history-modal-container .history-search-section .search-input-wrapper .clear-button:hover {
221
+ color: #9cccff !important;
222
+ }
223
+
224
+ [data-theme="dark"] .history-modal-container .history-content .history-group .history-group-title {
225
+ color: rgba(255, 255, 255, .45) !important;
226
+ }
227
+
228
+ [data-theme="dark"] .history-modal-container .history-content .history-group .history-item {
229
+ color: rgba(255, 255, 255, .88) !important;
230
+ }
231
+
232
+ [data-theme="dark"] .history-modal-container .history-content .history-group .history-item:hover {
233
+ background: rgba(255, 255, 255, .08) !important;
234
+ }
235
+
236
+ [data-theme="dark"] .history-modal-container .history-content .no-results, [data-theme="dark"] .history-modal-container .history-content .ant-typography.ant-typography-secondary {
237
+ color: rgba(255, 255, 255, .45) !important;
171
238
  }
172
239
 
@@ -7,7 +7,7 @@ import magnifying_glass from "../../icons/magnifying-glass.mjs";
7
7
  import { useHistoryStore } from "../../store/history.mjs";
8
8
  import "./index.css";
9
9
  const { Text } = Typography;
10
- const HistorySelector = ({ onSelect, history, currentType })=>{
10
+ const HistorySelector = ({ onSelect, history, currentType, trigger })=>{
11
11
  const [isModalOpen, setIsModalOpen] = useState(false);
12
12
  const [searchText, setSearchText] = useState('');
13
13
  const clearHistory = useHistoryStore((state)=>state.clearHistory);
@@ -74,7 +74,7 @@ const HistorySelector = ({ onSelect, history, currentType })=>{
74
74
  /*#__PURE__*/ jsx("div", {
75
75
  className: "selector-trigger",
76
76
  onClick: ()=>setIsModalOpen(true),
77
- children: /*#__PURE__*/ jsx(icons_history, {
77
+ children: null != trigger ? trigger : /*#__PURE__*/ jsx(icons_history, {
78
78
  width: 24,
79
79
  height: 24
80
80
  })
@@ -52,6 +52,34 @@
52
52
  overflow: scroll;
53
53
  }
54
54
 
55
+ .result-wrapper .combined-result-layout {
56
+ flex-direction: column;
57
+ align-self: stretch;
58
+ gap: 16px;
59
+ width: 100%;
60
+ min-width: 0;
61
+ max-width: 100%;
62
+ height: 100%;
63
+ display: flex;
64
+ }
65
+
66
+ .result-wrapper .combined-result-section {
67
+ flex-direction: column;
68
+ flex: auto;
69
+ min-width: 0;
70
+ min-height: 0;
71
+ display: flex;
72
+ }
73
+
74
+ .result-wrapper .combined-result-player {
75
+ flex: auto;
76
+ width: 100%;
77
+ min-width: 0;
78
+ max-width: 100%;
79
+ min-height: 0;
80
+ overflow: hidden;
81
+ }
82
+
55
83
  [data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
56
84
  color: rgba(255, 255, 255, .45);
57
85
  }
@@ -313,6 +341,13 @@
313
341
  background-color: rgba(0, 0, 0, 0);
314
342
  }
315
343
 
344
+ .prompt-input-wrapper .no-input-method {
345
+ text-align: center;
346
+ color: var(--midscene-text-tertiary, #666);
347
+ padding: 20px;
348
+ font-size: 14px;
349
+ }
350
+
316
351
  .prompt-input-wrapper .ant-form-item-with-help + .form-controller-wrapper {
317
352
  bottom: 14px;
318
353
  }
@@ -503,6 +538,155 @@
503
538
  color: #2b83ff;
504
539
  }
505
540
 
541
+ .prompt-input-wrapper-minimal {
542
+ width: 100%;
543
+ padding: 0;
544
+ }
545
+
546
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input {
547
+ background: #fff;
548
+ border: 1px solid #e8e8e8;
549
+ border-radius: 24px;
550
+ margin-top: 0;
551
+ padding-bottom: 56px;
552
+ position: relative;
553
+ overflow: hidden;
554
+ }
555
+
556
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input:focus-within {
557
+ box-shadow: 0 0 0 2px rgba(25, 121, 255, .12);
558
+ }
559
+
560
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input:before {
561
+ display: none;
562
+ }
563
+
564
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .main-side-console-input-textarea {
565
+ min-height: 56px;
566
+ padding: 16px 16px 8px;
567
+ line-height: 22px;
568
+ }
569
+
570
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .structured-params-container {
571
+ border-radius: inherit;
572
+ background: none;
573
+ padding: 16px 16px 72px;
574
+ }
575
+
576
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-row {
577
+ justify-content: space-between;
578
+ align-items: center;
579
+ gap: 12px;
580
+ display: flex;
581
+ position: absolute;
582
+ bottom: 12px;
583
+ left: 12px;
584
+ right: 12px;
585
+ }
586
+
587
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-left {
588
+ align-items: center;
589
+ gap: 4px;
590
+ min-width: 0;
591
+ display: flex;
592
+ }
593
+
594
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger, .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger {
595
+ cursor: pointer;
596
+ background: none;
597
+ border: none;
598
+ justify-content: center;
599
+ align-items: center;
600
+ padding: 0;
601
+ display: inline-flex;
602
+ }
603
+
604
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger {
605
+ color: #878787;
606
+ border-radius: 32px;
607
+ gap: 4px;
608
+ height: 32px;
609
+ padding: 4px 8px;
610
+ }
611
+
612
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger:hover {
613
+ background: rgba(0, 0, 0, .03);
614
+ }
615
+
616
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-trigger:disabled {
617
+ cursor: not-allowed;
618
+ opacity: .5;
619
+ }
620
+
621
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-icon {
622
+ object-fit: contain;
623
+ width: 16px;
624
+ height: 16px;
625
+ }
626
+
627
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-label {
628
+ color: #878787;
629
+ white-space: nowrap;
630
+ font-size: 12px;
631
+ font-weight: 500;
632
+ line-height: 16px;
633
+ }
634
+
635
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-chevron {
636
+ object-fit: contain;
637
+ opacity: .25;
638
+ width: 5.3px;
639
+ height: 9.3px;
640
+ margin-left: -2px;
641
+ transform: rotate(-90deg);
642
+ }
643
+
644
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-action-chevron-fallback {
645
+ opacity: .5;
646
+ font-size: 10px;
647
+ }
648
+
649
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .history-selector-wrapper, .prompt-input-wrapper-minimal .minimal-main-side-console-input .settings-wrapper, .prompt-input-wrapper-minimal .minimal-main-side-console-input .selector-trigger {
650
+ justify-content: center;
651
+ align-items: center;
652
+ width: auto;
653
+ height: auto;
654
+ display: inline-flex;
655
+ }
656
+
657
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger {
658
+ border-radius: 32px;
659
+ width: 32px;
660
+ height: 32px;
661
+ }
662
+
663
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-icon-trigger:hover {
664
+ background: rgba(0, 0, 0, .03);
665
+ }
666
+
667
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon {
668
+ object-fit: contain;
669
+ width: 16px;
670
+ height: 16px;
671
+ }
672
+
673
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-history {
674
+ width: 18px;
675
+ height: 18px;
676
+ }
677
+
678
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-fallback {
679
+ color: #878787;
680
+ }
681
+
682
+ .prompt-input-wrapper-minimal .minimal-main-side-console-input .form-controller-wrapper {
683
+ width: auto;
684
+ height: auto;
685
+ padding: 0;
686
+ line-height: normal;
687
+ position: static;
688
+ }
689
+
506
690
  .more-apis-dropdown .ant-dropdown-menu {
507
691
  scrollbar-width: thin;
508
692
  max-height: 400px;
@@ -577,7 +761,7 @@
577
761
 
578
762
  [data-theme="dark"] .prompt-input-wrapper .ant-form-item-control-input-content .ant-input, [data-theme="dark"] .prompt-input-wrapper .ant-form-item-control-input-content textarea.ant-input {
579
763
  color: #f8fafd !important;
580
- background: rgba(255, 255, 255, .04) !important;
764
+ background: none !important;
581
765
  border-color: rgba(255, 255, 255, .12) !important;
582
766
  }
583
767
 
@@ -617,6 +801,14 @@
617
801
  border-color: #2b83ff !important;
618
802
  }
619
803
 
804
+ [data-theme="dark"] .prompt-input-wrapper.prompt-input-wrapper-minimal .minimal-main-side-console-input .structured-params-container {
805
+ background: none !important;
806
+ }
807
+
808
+ [data-theme="dark"] .prompt-input-wrapper.prompt-input-wrapper-minimal .minimal-main-side-console-input .minimal-toolbar-icon-fallback {
809
+ color: rgba(255, 255, 255, .72) !important;
810
+ }
811
+
620
812
  [data-theme="dark"] .prompt-input .tip-button {
621
813
  background-color: rgba(255, 255, 255, .08);
622
814
  }
@@ -52,6 +52,34 @@
52
52
  overflow: scroll;
53
53
  }
54
54
 
55
+ .result-wrapper .combined-result-layout {
56
+ flex-direction: column;
57
+ align-self: stretch;
58
+ gap: 16px;
59
+ width: 100%;
60
+ min-width: 0;
61
+ max-width: 100%;
62
+ height: 100%;
63
+ display: flex;
64
+ }
65
+
66
+ .result-wrapper .combined-result-section {
67
+ flex-direction: column;
68
+ flex: auto;
69
+ min-width: 0;
70
+ min-height: 0;
71
+ display: flex;
72
+ }
73
+
74
+ .result-wrapper .combined-result-player {
75
+ flex: auto;
76
+ width: 100%;
77
+ min-width: 0;
78
+ max-width: 100%;
79
+ min-height: 0;
80
+ overflow: hidden;
81
+ }
82
+
55
83
  [data-theme="dark"] .result-wrapper .loading-container .loading-progress-text {
56
84
  color: rgba(255, 255, 255, .45);
57
85
  }
@@ -40,12 +40,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
40
40
  children: null == result ? void 0 : result.error
41
41
  });
42
42
  resultDataToShow = result.reportHTML || replayScriptsInfo ? /*#__PURE__*/ jsxs("div", {
43
- style: {
44
- display: 'flex',
45
- flexDirection: 'column',
46
- gap: '16px',
47
- height: '100%'
48
- },
43
+ className: "combined-result-layout",
49
44
  children: [
50
45
  /*#__PURE__*/ jsxs("div", {
51
46
  style: {
@@ -65,10 +60,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
65
60
  ]
66
61
  }),
67
62
  /*#__PURE__*/ jsxs("div", {
68
- style: {
69
- flex: '1 1 auto',
70
- minHeight: 0
71
- },
63
+ className: "combined-result-section",
72
64
  children: [
73
65
  /*#__PURE__*/ jsx("div", {
74
66
  style: {
@@ -77,15 +69,18 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
77
69
  },
78
70
  children: "Report:"
79
71
  }),
80
- /*#__PURE__*/ jsx(Player, {
81
- replayScripts: null == replayScriptsInfo ? void 0 : replayScriptsInfo.scripts,
82
- imageWidth: null == replayScriptsInfo ? void 0 : replayScriptsInfo.width,
83
- imageHeight: null == replayScriptsInfo ? void 0 : replayScriptsInfo.height,
84
- reportFileContent: result.reportHTML || null,
85
- fitMode: fitMode,
86
- autoZoom: autoZoom,
87
- canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
88
- }, replayCounter)
72
+ /*#__PURE__*/ jsx("div", {
73
+ className: "combined-result-player",
74
+ children: /*#__PURE__*/ jsx(Player, {
75
+ replayScripts: null == replayScriptsInfo ? void 0 : replayScriptsInfo.scripts,
76
+ imageWidth: null == replayScriptsInfo ? void 0 : replayScriptsInfo.width,
77
+ imageHeight: null == replayScriptsInfo ? void 0 : replayScriptsInfo.height,
78
+ reportFileContent: result.reportHTML || null,
79
+ fitMode: fitMode,
80
+ autoZoom: autoZoom,
81
+ canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
82
+ }, replayCounter)
83
+ })
89
84
  ]
90
85
  })
91
86
  ]
@@ -98,12 +93,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
98
93
  });
99
94
  const reportContent = (null == result ? void 0 : result.reportHTML) || null;
100
95
  resultDataToShow = /*#__PURE__*/ jsxs("div", {
101
- style: {
102
- display: 'flex',
103
- flexDirection: 'column',
104
- gap: '16px',
105
- height: '100%'
106
- },
96
+ className: "combined-result-layout",
107
97
  children: [
108
98
  /*#__PURE__*/ jsxs("div", {
109
99
  style: {
@@ -121,10 +111,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
121
111
  ]
122
112
  }),
123
113
  /*#__PURE__*/ jsxs("div", {
124
- style: {
125
- flex: '1 1 auto',
126
- minHeight: 0
127
- },
114
+ className: "combined-result-section",
128
115
  children: [
129
116
  /*#__PURE__*/ jsx("div", {
130
117
  style: {
@@ -133,15 +120,18 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
133
120
  },
134
121
  children: "Report:"
135
122
  }),
136
- /*#__PURE__*/ jsx(Player, {
137
- replayScripts: replayScriptsInfo.scripts,
138
- imageWidth: replayScriptsInfo.width,
139
- imageHeight: replayScriptsInfo.height,
140
- reportFileContent: reportContent,
141
- fitMode: fitMode,
142
- autoZoom: autoZoom,
143
- canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
144
- }, replayCounter)
123
+ /*#__PURE__*/ jsx("div", {
124
+ className: "combined-result-player",
125
+ children: /*#__PURE__*/ jsx(Player, {
126
+ replayScripts: replayScriptsInfo.scripts,
127
+ imageWidth: replayScriptsInfo.width,
128
+ imageHeight: replayScriptsInfo.height,
129
+ reportFileContent: reportContent,
130
+ fitMode: fitMode,
131
+ autoZoom: autoZoom,
132
+ canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
133
+ }, replayCounter)
134
+ })
145
135
  ]
146
136
  })
147
137
  ]
@@ -164,12 +154,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
164
154
  children: JSON.stringify(null == result ? void 0 : result.result, null, 2)
165
155
  });
166
156
  resultDataToShow = /*#__PURE__*/ jsxs("div", {
167
- style: {
168
- display: 'flex',
169
- flexDirection: 'column',
170
- gap: '16px',
171
- height: '100%'
172
- },
157
+ className: "combined-result-layout",
173
158
  children: [
174
159
  /*#__PURE__*/ jsxs("div", {
175
160
  style: {
@@ -187,10 +172,7 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
187
172
  ]
188
173
  }),
189
174
  /*#__PURE__*/ jsxs("div", {
190
- style: {
191
- flex: '1 1 auto',
192
- minHeight: 0
193
- },
175
+ className: "combined-result-section",
194
176
  children: [
195
177
  /*#__PURE__*/ jsx("div", {
196
178
  style: {
@@ -199,12 +181,15 @@ const PlaygroundResultView = ({ result, loading, serverValid, serviceMode, repla
199
181
  },
200
182
  children: "Report:"
201
183
  }),
202
- /*#__PURE__*/ jsx(Player, {
203
- reportFileContent: result.reportHTML,
204
- fitMode: fitMode,
205
- autoZoom: autoZoom,
206
- canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
207
- }, replayCounter)
184
+ /*#__PURE__*/ jsx("div", {
185
+ className: "combined-result-player",
186
+ children: /*#__PURE__*/ jsx(Player, {
187
+ reportFileContent: result.reportHTML,
188
+ fitMode: fitMode,
189
+ autoZoom: autoZoom,
190
+ canDownloadReport: null != canDownloadReport ? canDownloadReport : 'In-Browser' !== serviceMode
191
+ }, replayCounter)
192
+ })
208
193
  ]
209
194
  })
210
195
  ]