@sidecar-ai/cli 0.1.0-alpha.12 → 0.1.0-alpha.13
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.
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1430,7 +1430,8 @@ function renderWidgetHtml(title, javascript, css = "") {
|
|
|
1430
1430
|
<style>
|
|
1431
1431
|
:root { color-scheme: light dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
1432
1432
|
html, body, #root { min-height: 100%; margin: 0; background: transparent; }
|
|
1433
|
-
body {
|
|
1433
|
+
html, body { overflow: auto; }
|
|
1434
|
+
body { color: CanvasText; min-width: 0; }
|
|
1434
1435
|
* { box-sizing: border-box; }
|
|
1435
1436
|
${css}
|
|
1436
1437
|
</style>
|
|
@@ -4424,6 +4425,7 @@ function renderDevHarnessHtml(state, options = {}) {
|
|
|
4424
4425
|
}
|
|
4425
4426
|
.message {
|
|
4426
4427
|
display: grid;
|
|
4428
|
+
flex: 0 0 auto;
|
|
4427
4429
|
gap: 8px;
|
|
4428
4430
|
max-width: 100%;
|
|
4429
4431
|
}
|
|
@@ -4515,6 +4517,7 @@ function renderDevHarnessHtml(state, options = {}) {
|
|
|
4515
4517
|
background: var(--panel);
|
|
4516
4518
|
border: 1px solid var(--border);
|
|
4517
4519
|
border-radius: 14px;
|
|
4520
|
+
flex: 0 0 auto;
|
|
4518
4521
|
overflow: hidden;
|
|
4519
4522
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
|
|
4520
4523
|
margin: 8px 0;
|
|
@@ -4545,16 +4548,28 @@ function renderDevHarnessHtml(state, options = {}) {
|
|
|
4545
4548
|
:root[data-sidecar-theme="dark"] .tool-head .status {
|
|
4546
4549
|
background: rgba(255, 255, 255, 0.05);
|
|
4547
4550
|
}
|
|
4548
|
-
.tool-body {
|
|
4551
|
+
.tool-body {
|
|
4552
|
+
background: var(--panel);
|
|
4553
|
+
display: grid;
|
|
4554
|
+
gap: 10px;
|
|
4555
|
+
min-width: 0;
|
|
4556
|
+
padding: 14px;
|
|
4557
|
+
}
|
|
4549
4558
|
|
|
4550
|
-
iframe {
|
|
4559
|
+
.tool-body iframe {
|
|
4551
4560
|
background: var(--widget-bg);
|
|
4552
4561
|
border: 1px solid var(--border);
|
|
4553
4562
|
border-radius: 10px;
|
|
4554
|
-
|
|
4563
|
+
display: block;
|
|
4564
|
+
height: clamp(360px, 58dvh, 720px);
|
|
4565
|
+
min-height: 360px;
|
|
4566
|
+
overflow: auto;
|
|
4555
4567
|
width: 100%;
|
|
4556
4568
|
}
|
|
4557
|
-
:root[data-sidecar-device="mobile"] iframe {
|
|
4569
|
+
:root[data-sidecar-device="mobile"] .tool-body iframe {
|
|
4570
|
+
height: clamp(440px, 70dvh, 680px);
|
|
4571
|
+
min-height: 440px;
|
|
4572
|
+
}
|
|
4558
4573
|
|
|
4559
4574
|
.composer {
|
|
4560
4575
|
background: var(--bg);
|
|
@@ -5572,6 +5587,7 @@ function appendToolResult(event) {
|
|
|
5572
5587
|
const iframe = document.createElement("iframe");
|
|
5573
5588
|
iframe.src = "/__sidecar/dev/resource?uri=" + encodeURIComponent(event.tool.resourceUri);
|
|
5574
5589
|
iframe.title = event.tool.title || event.tool.name;
|
|
5590
|
+
iframe.setAttribute("scrolling", "auto");
|
|
5575
5591
|
frameContexts.set(iframe.contentWindow, {
|
|
5576
5592
|
result: event.result,
|
|
5577
5593
|
tool: event.tool,
|