pi-sdk-web 0.1.4 → 0.1.6
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/server.js +5 -1
- package/package.json +1 -1
- package/static/style.css +4 -5
package/dist/server.js
CHANGED
|
@@ -167,7 +167,11 @@ export class PiWebServer {
|
|
|
167
167
|
try {
|
|
168
168
|
const data = await readFile(filePath);
|
|
169
169
|
const ext = filePath.slice(filePath.lastIndexOf(".")).toLowerCase();
|
|
170
|
-
res.writeHead(200, {
|
|
170
|
+
res.writeHead(200, {
|
|
171
|
+
"Content-Type": MIME[ext] ?? "application/octet-stream",
|
|
172
|
+
// Always revalidate: frontend updates must be visible without manual cache clears
|
|
173
|
+
"Cache-Control": "no-cache",
|
|
174
|
+
});
|
|
171
175
|
res.end(data);
|
|
172
176
|
}
|
|
173
177
|
catch {
|
package/package.json
CHANGED
package/static/style.css
CHANGED
|
@@ -198,7 +198,7 @@ body {
|
|
|
198
198
|
#scroll-view {
|
|
199
199
|
flex: 1;
|
|
200
200
|
overflow-y: auto;
|
|
201
|
-
overflow-x:
|
|
201
|
+
overflow-x: hidden;
|
|
202
202
|
padding: 8px;
|
|
203
203
|
min-width: 0;
|
|
204
204
|
}
|
|
@@ -228,7 +228,7 @@ body {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
.message.assistant {
|
|
231
|
-
padding: 2px
|
|
231
|
+
padding: 2px 12px;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.message .role {
|
|
@@ -343,6 +343,7 @@ body {
|
|
|
343
343
|
.body-text, .message.user .body {
|
|
344
344
|
line-height: 1.6;
|
|
345
345
|
overflow-wrap: anywhere;
|
|
346
|
+
word-break: break-word;
|
|
346
347
|
min-width: 0;
|
|
347
348
|
}
|
|
348
349
|
|
|
@@ -464,9 +465,7 @@ body {
|
|
|
464
465
|
|
|
465
466
|
.body-text table,
|
|
466
467
|
.message.user .body table {
|
|
467
|
-
|
|
468
|
-
overflow-x: auto;
|
|
469
|
-
max-width: 100%;
|
|
468
|
+
width: 100%;
|
|
470
469
|
border-collapse: collapse;
|
|
471
470
|
margin: 0.6em 0;
|
|
472
471
|
font-size: 0.95em;
|