@floless/app 0.164.0 → 0.166.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.
@@ -273,7 +273,9 @@
273
273
  box = el('div', 'ai-chat-ask-other');
274
274
  const line = el('div', 'ai-chat-ask-other-line');
275
275
  const input = control('input', key('other-input'), question.header || 'your answer', 'ai-chat-ask-other-input');
276
- input.type = 'text'; input.autocomplete = 'off'; input.maxLength = 1000; input.spellcheck = true;
276
+ input.type = 'text'; input.autocomplete = 'off'; input.spellcheck = true;
277
+ // A card that keeps unreadable text as a note checks its own length on Submit and keeps the draft; nothing is cut here.
278
+ if (!question.otherUncapped) input.maxLength = 1000;
277
279
  input.placeholder = question.otherPlaceholder || 'Type your answer';
278
280
  input.setAttribute('aria-label', question.otherInputLabel || `Your own answer to: ${question.question}`);
279
281
  input.value = row.other;
package/dist/web/chat.css CHANGED
@@ -606,7 +606,7 @@
606
606
  class carries is inert outside the settings grid. */
607
607
  .ai-chat-empty-signin { display: inline-flex; margin-top: 10px; padding: 4px 10px; font-size: 11px; }
608
608
  /* Flo building FloLess's three parts on the chat's start screens (web/chat-landing-scene.js), in the parts' own
609
- colours (app.css --part-*: floless-web's role palette, ink on light). --scene-* draws and names; --scene-*-mark is
609
+ colours (app.css --part-*: bright on dark, ink on light). --scene-* draws and names; --scene-*-mark is
610
610
  the underline, which stays bright in both themes. */
611
611
  .chat-landing-scene {
612
612
  --scene-ws: var(--part-ws); --scene-wf: var(--part-wf); --scene-ag: var(--part-ag);
@@ -1167,6 +1167,14 @@
1167
1167
  /* #2642: the person went on with the claim as an assumption. Decided, so no warn edge; dashed, so never a source. */
1168
1168
  .ai-chat-source.assumed { flex-wrap: wrap; max-width: 100%; border-style: dashed; border-color: var(--border-strong); }
1169
1169
  .ai-chat-source.assumed .ai-chat-source-why { color: var(--text-muted); white-space: normal; overflow-wrap: anywhere; }
1170
+ /* #3000: the claim an assumption is about, in the answer's words, as the unresolved chip names what was cited. */
1171
+ .ai-chat-source.assumed .ai-chat-source-cited { color: var(--text); font: 9.5px/1.25 var(--mono); white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
1172
+ /* #3000: sources no claim uses. After the claims' sources, below a hairline; quiet, never the warn edge of a claim. */
1173
+ .ai-chat-sources-head.also { margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--border); align-self: stretch; }
1174
+ .ai-chat-source.consulted { border-color: var(--border-strong); background: transparent; }
1175
+ .ai-chat-source.consulted.not-found { flex-wrap: wrap; max-width: 100%; border-style: dashed; }
1176
+ .ai-chat-source.consulted.not-found .ai-chat-source-cited { color: var(--text-muted); font: 9.5px/1.25 var(--mono); white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
1177
+ .ai-chat-source.consulted.not-found .ai-chat-source-why { color: var(--text-muted); white-space: normal; overflow-wrap: anywhere; }
1170
1178
  /* #2643: the ways on from a claim with no source wrap between buttons, never inside one; a chosen source says so in words. */
1171
1179
  .ai-chat-source .ai-chat-source-actions { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
1172
1180
  .ai-chat-source button.ai-chat-source-action.quiet { border-color: transparent; background: transparent; color: var(--text-muted); }
@@ -1249,6 +1257,8 @@
1249
1257
  small sizes, so the provenance marks, the Assumption tag and the "?" marker take the darker slate the chat uses. */
1250
1258
  [data-theme="light"] .ai-chat-source .ai-chat-source-marks,
1251
1259
  [data-theme="light"] .ai-chat-sources-head,
1260
+ [data-theme="light"] .ai-chat-source.consulted.not-found .ai-chat-source-cited,
1261
+ [data-theme="light"] .ai-chat-source.consulted.not-found .ai-chat-source-why,
1252
1262
  [data-theme="light"] .ai-chat-message-body .ai-chat-assume { color: #475569; }
1253
1263
  [data-theme="light"] .ai-chat-message-body button.ai-chat-cite.unresolved { color: var(--text); }
1254
1264
  [data-theme="light"] .ai-chat-source .ai-chat-source-note.warn { color: var(--text); }