@llm4ts/shell 4.7.0 → 4.8.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.
package/web/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <meta name="viewport" content="width=1440" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>llm4ts watch</title>
7
7
  <link rel="stylesheet" href="style.css" />
8
8
  </head>
@@ -49,7 +49,7 @@
49
49
  ><span><i class="sw waiting"></i>waiting</span>
50
50
  </div>
51
51
  </div>
52
- <div class="viz" data-graph></div>
52
+ <div class="viz-frame"><div class="viz" data-graph></div></div>
53
53
  <div class="pane" data-executors hidden></div>
54
54
  <div class="pane" data-boards hidden></div>
55
55
  <div class="roster">
@@ -153,7 +153,7 @@
153
153
  ><span><i class="sw waiting"></i>waiting</span>
154
154
  </div>
155
155
  </div>
156
- <div class="viz" data-graph></div>
156
+ <div class="viz-frame"><div class="viz" data-graph></div></div>
157
157
  <div class="pane" data-executors hidden></div>
158
158
  <div class="pane" data-boards hidden></div>
159
159
  <div class="roster">
package/web/style.css CHANGED
@@ -93,7 +93,8 @@ kbd {
93
93
 
94
94
  .screen {
95
95
  display: none;
96
- width: 1440px;
96
+ width: 100%;
97
+ max-width: 1440px;
97
98
  margin: 0 auto;
98
99
  padding: 32px 24px 40px;
99
100
  flex-direction: column;
@@ -106,6 +107,7 @@ kbd {
106
107
  /* top bar */
107
108
  .topbar {
108
109
  display: flex;
110
+ flex-wrap: wrap;
109
111
  align-items: flex-end;
110
112
  justify-content: space-between;
111
113
  gap: 20px;
@@ -128,6 +130,7 @@ h1 {
128
130
  }
129
131
  .status-row {
130
132
  display: flex;
133
+ flex-wrap: wrap;
131
134
  gap: 8px;
132
135
  align-items: center;
133
136
  }
@@ -214,6 +217,7 @@ h1 {
214
217
  }
215
218
  .card-head {
216
219
  display: flex;
220
+ flex-wrap: wrap;
217
221
  gap: 16px;
218
222
  align-items: center;
219
223
  justify-content: space-between;
@@ -222,7 +226,7 @@ h1 {
222
226
  background: rgba(38, 38, 38, 0.5);
223
227
  }
224
228
  .head-title {
225
- flex: 1;
229
+ flex: 1 1 180px;
226
230
  min-width: 0;
227
231
  }
228
232
  .card-title {
@@ -267,6 +271,7 @@ h1 {
267
271
  }
268
272
  .legend {
269
273
  display: flex;
274
+ flex-wrap: wrap;
270
275
  gap: 8px 16px;
271
276
  font-size: 13px;
272
277
  color: var(--muted);
@@ -374,9 +379,15 @@ button.key[aria-pressed="true"] {
374
379
  }
375
380
 
376
381
  /* flow graph */
382
+ .viz-frame {
383
+ overflow-x: auto;
384
+ overscroll-behavior-x: contain;
385
+ }
377
386
  .viz {
378
387
  position: relative;
379
- height: 560px;
388
+ /* graphWidth (web-src/views.ts); a narrower card zooms it to fit */
389
+ width: 1390px;
390
+ height: 400px;
380
391
  margin: 16px 0 4px;
381
392
  }
382
393
  .viz svg.edges {
@@ -734,7 +745,7 @@ button.key[aria-pressed="true"] {
734
745
  /* lower row */
735
746
  .lower {
736
747
  display: grid;
737
- grid-template-columns: 440px minmax(0, 1fr) 440px;
748
+ grid-template-columns: repeat(3, minmax(0, 1fr));
738
749
  gap: 20px;
739
750
  align-items: start;
740
751
  }
@@ -970,7 +981,7 @@ button.key[aria-pressed="true"] {
970
981
  }
971
982
  .timeline-card.full .timeline {
972
983
  position: relative;
973
- max-height: 560px;
984
+ max-height: min(560px, 60vh);
974
985
  overflow-y: auto;
975
986
  overscroll-behavior: contain;
976
987
  }
@@ -1000,6 +1011,7 @@ button.key[aria-pressed="true"] {
1000
1011
  /* replay scrubber */
1001
1012
  .transport {
1002
1013
  display: flex;
1014
+ flex-wrap: wrap;
1003
1015
  gap: 8px;
1004
1016
  }
1005
1017
  .speed {
@@ -1089,6 +1101,38 @@ button.key[aria-pressed="true"] {
1089
1101
  color: var(--faint);
1090
1102
  }
1091
1103
 
1104
+ /* narrower windows: the page fits the width, never scrolls sideways */
1105
+ @media (max-width: 1100px) {
1106
+ .lower {
1107
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1108
+ }
1109
+ .lower > .timeline-card {
1110
+ grid-column: 1 / -1;
1111
+ }
1112
+ .roster-list {
1113
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1114
+ }
1115
+ .scrub {
1116
+ padding: 44px 28px 20px;
1117
+ }
1118
+ }
1119
+ @media (max-width: 720px) {
1120
+ .screen {
1121
+ padding: 20px 12px 28px;
1122
+ }
1123
+ .lower,
1124
+ .roster-list {
1125
+ grid-template-columns: minmax(0, 1fr);
1126
+ }
1127
+ .roster {
1128
+ flex-direction: column;
1129
+ align-items: stretch;
1130
+ }
1131
+ .speed {
1132
+ align-items: flex-start;
1133
+ }
1134
+ }
1135
+
1092
1136
  @media (prefers-reduced-motion: reduce) {
1093
1137
  .node[data-state="running"] .box,
1094
1138
  .node[data-state="running"] .shine,
@@ -1401,7 +1445,7 @@ button.exec-card {
1401
1445
  .tail {
1402
1446
  margin: 0;
1403
1447
  padding: 0 20px 18px;
1404
- max-height: 560px;
1448
+ max-height: min(560px, 60vh);
1405
1449
  overflow: auto;
1406
1450
  overscroll-behavior: contain;
1407
1451
  font-family: var(--mono);