pi-sdk-web 0.1.2 → 0.1.4
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/package.json +1 -1
- package/static/app.js +1 -1
- package/static/style.css +6 -0
package/package.json
CHANGED
package/static/app.js
CHANGED
|
@@ -105,7 +105,7 @@ class PiWebClient {
|
|
|
105
105
|
// ------------------------------------------------------------------
|
|
106
106
|
|
|
107
107
|
initThemeSwitch() {
|
|
108
|
-
const stored = localStorage.getItem('piweb-theme') || '
|
|
108
|
+
const stored = localStorage.getItem('piweb-theme') || 'bright';
|
|
109
109
|
this.applyTheme(stored);
|
|
110
110
|
document.querySelectorAll('.theme-option').forEach((el) => {
|
|
111
111
|
el.addEventListener('click', () => this.applyTheme(el.dataset.theme));
|
package/static/style.css
CHANGED
|
@@ -198,6 +198,7 @@ body {
|
|
|
198
198
|
#scroll-view {
|
|
199
199
|
flex: 1;
|
|
200
200
|
overflow-y: auto;
|
|
201
|
+
overflow-x: auto;
|
|
201
202
|
padding: 8px;
|
|
202
203
|
min-width: 0;
|
|
203
204
|
}
|
|
@@ -341,6 +342,8 @@ body {
|
|
|
341
342
|
/* Markdown content inside messages */
|
|
342
343
|
.body-text, .message.user .body {
|
|
343
344
|
line-height: 1.6;
|
|
345
|
+
overflow-wrap: anywhere;
|
|
346
|
+
min-width: 0;
|
|
344
347
|
}
|
|
345
348
|
|
|
346
349
|
.body-text > *:first-child,
|
|
@@ -461,6 +464,9 @@ body {
|
|
|
461
464
|
|
|
462
465
|
.body-text table,
|
|
463
466
|
.message.user .body table {
|
|
467
|
+
display: block;
|
|
468
|
+
overflow-x: auto;
|
|
469
|
+
max-width: 100%;
|
|
464
470
|
border-collapse: collapse;
|
|
465
471
|
margin: 0.6em 0;
|
|
466
472
|
font-size: 0.95em;
|