@paramms/chat-widget 1.9.1 → 1.9.2

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 CHANGED
@@ -9,8 +9,11 @@ import { E2ESession as Fe, extractX3DHInit as We } from "./e2e.js";
9
9
  const Ge = `
10
10
  .ocw { ${Me("ocw")}
11
11
  position:relative;
12
- display:flex; flex-direction:column; height:100%; min-height:320px; background:var(--ocw-bg);
12
+ display:flex; flex-direction:column; height:100%; min-height:320px; max-width:100%; background:var(--ocw-bg);
13
13
  font-family:var(--ocw-fb); color:var(--ocw-ink); overflow:hidden; }
14
+ .ocw, .ocw *, .ocw *::before, .ocw *::after { box-sizing:border-box; }
15
+ .ocw input, .ocw textarea, .ocw select, .ocw button { font-family:inherit; }
16
+ .ocw a, .ocw .ocw-bubble { overflow-wrap:anywhere; word-break:break-word; }
14
17
  @media (prefers-color-scheme: dark) { .ocw[data-theme="auto"] { ${ke("ocw")} } }
15
18
  .ocw[data-theme="dark"] { ${ke("ocw")} }
16
19
  /* ── Responsive sizing ──────────────────────────────────────────────────────
@@ -58,7 +61,7 @@ const Ge = `
58
61
  .ocw-chiprow { display:flex; gap:8px; padding:10px 12px; background:var(--ocw-card); border-bottom:1px solid var(--ocw-line); overflow-x:auto; }
59
62
  .ocw-chip { flex:none; display:flex; align-items:center; gap:6px; border:none; background:var(--ocw-tint); color:var(--ocw-accent); border-radius:999px; padding:7px 13px; font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; }
60
63
  .ocw-chip:hover { border-color:var(--ocw-accent); color:var(--ocw-accent); }
61
- .ocw-scroll { flex:1; min-height:0; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; gap:10px; }
64
+ .ocw-scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; padding:16px 14px; display:flex; flex-direction:column; gap:10px; }
62
65
  .ocw-subject { background:var(--ocw-tint); border:none; border-radius:16px; padding:10px 12px; }
63
66
  .ocw-subject-title { font-family:var(--ocw-fh); font-weight:600; font-size:13px; margin-bottom:2px; }
64
67
  .ocw-subject-sub { color:var(--ocw-mut); font-size:10.5px; margin-bottom:6px; }
@@ -160,8 +163,9 @@ const Ge = `
160
163
  .ocw-form-title { font-weight:700; font-size:14px; margin-bottom:8px; }
161
164
  .ocw-form-row { display:flex; flex-direction:column; gap:3px; margin-bottom:8px; }
162
165
  .ocw-form-lbl { font-size:12px; color:var(--ocw-mut); }
163
- .ocw-form-input { border:1px solid var(--ocw-line); border-radius:9px; padding:9px 11px; font:inherit; font-size:14px; outline:none; }
166
+ .ocw-form-input { width:100%; box-sizing:border-box; border:1px solid var(--ocw-line); border-radius:9px; padding:9px 11px; font:inherit; font-size:14px; outline:none; background:var(--ocw-card); color:var(--ocw-ink); appearance:none; }
164
167
  .ocw-form-input:focus { border-color:var(--ocw-accent); }
168
+ .ocw-form-input::placeholder { color:var(--ocw-mut); }
165
169
  .ocw-form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
166
170
  .ocw-form-cancel { background:none; border:none; color:var(--ocw-mut); font-size:13px; cursor:pointer; padding:8px 10px; }
167
171
  .ocw-form-submit { background:var(--ocw-accent); color:#fff; border:none; border-radius:999px; padding:8px 18px; font-size:13px; font-weight:600; cursor:pointer; }