@floless/app 0.139.1 → 0.140.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/dist/web/chat.css CHANGED
@@ -19,7 +19,17 @@
19
19
  height: 100%;
20
20
  display: grid;
21
21
  grid-template-columns: minmax(0, 1fr);
22
- grid-template-rows: auto auto minmax(0, 1fr) auto auto auto 0;
22
+ /* Row 2 is the ⚙ settings strip. It is minmax(0, auto), not a plain auto, so that in a short
23
+ panel it gives height back instead of pushing the feed to 0 and the composer out through the
24
+ host's overflow: hidden edge (#1492). The composer keeps its rigid auto row — it is the one
25
+ thing that must never leave the shell. */
26
+ grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto auto auto 0;
27
+ /* Size container so the strip's 50cqh cap below measures the shell's own height. Without it the
28
+ cap does not vanish, it silently mis-measures: cqh then falls back to the small viewport, which
29
+ is far taller than a short panel and leaves the strip effectively uncapped. Note this also
30
+ applies layout/size containment, so a position: fixed descendant would be trapped in the shell
31
+ — there are none today. */
32
+ container-type: size;
23
33
  background: var(--surface);
24
34
  color: var(--text);
25
35
  /* Keep ordinary chat copy and controls readable without changing the app-wide theme. */
@@ -116,16 +126,26 @@
116
126
  .ai-chat-approval button:focus-visible,
117
127
  .ai-chat-runtime button:focus-visible,
118
128
  .ai-chat-attachment button:focus-visible,
129
+ .ai-chat-provider-switch:focus-visible,
119
130
  #chat-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
120
131
 
121
132
  .ai-chat-settings {
122
133
  grid-row: 2;
123
134
  display: grid;
124
- grid-template-columns: repeat(4, minmax(0, 1fr));
135
+ grid-template-columns: repeat(3, minmax(0, 1fr));
125
136
  gap: 1px;
126
137
  padding: 1px 8px;
127
138
  border-bottom: 1px solid var(--border);
128
139
  background: var(--border);
140
+ /* In a short panel the strip scrolls rather than shoving the feed and the composer out of the
141
+ shell, and it never claims more than half the chat's height, so the conversation stays in
142
+ view when there is room for it (#1492). */
143
+ min-height: 0;
144
+ max-height: 50cqh;
145
+ overflow-y: auto;
146
+ overscroll-behavior: contain;
147
+ scrollbar-width: thin;
148
+ scrollbar-color: var(--border-strong) var(--surface);
129
149
  }
130
150
  .ai-chat-settings[hidden] { display: none; }
131
151
  .ai-chat-setting {
@@ -140,12 +160,40 @@
140
160
  text-align: left;
141
161
  }
142
162
  .ai-chat-setting:hover { background: var(--surface-2); }
163
+ /* When the strip scrolls, keyboard focus must not land flush under the toolbar's hairline. */
164
+ .ai-chat-setting, .ai-chat-provider { scroll-margin-block: 4px; }
143
165
  .ai-chat-setting > span { display: block; color: var(--text); font: 8px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
144
166
  .ai-chat-setting > strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 10px/1.25 var(--mono); font-weight: 500; }
145
167
  .ai-chat-setting:disabled { cursor: default; opacity: 1; }
146
168
  .ai-chat-setting:disabled > strong { color: var(--text-dim); }
147
- .ai-chat-provider { cursor: default; }
169
+ .ai-chat-provider {
170
+ grid-column: 1 / -1;
171
+ display: grid;
172
+ grid-template-columns: minmax(0, 1fr) auto;
173
+ grid-template-rows: auto auto;
174
+ column-gap: 8px;
175
+ align-items: center;
176
+ cursor: default;
177
+ }
148
178
  .ai-chat-provider:hover { background: var(--surface); }
179
+ .ai-chat-provider > span { grid-column: 1; grid-row: 1; }
180
+ .ai-chat-provider > strong { grid-column: 1; grid-row: 2; }
181
+ .ai-chat-provider-switch {
182
+ grid-column: 2;
183
+ grid-row: 1 / span 2;
184
+ appearance: none;
185
+ padding: 3px 8px;
186
+ border: 1px solid var(--border-strong);
187
+ border-radius: 3px;
188
+ background: var(--surface);
189
+ color: var(--text-muted);
190
+ font: 10px/1.25 var(--ui);
191
+ cursor: pointer;
192
+ white-space: nowrap;
193
+ }
194
+ .ai-chat-provider-switch:hover { color: var(--text); border-color: var(--accent-dim); background: var(--surface-2); }
195
+ .ai-chat-provider-switch:disabled { cursor: default; color: var(--text-dim); border-color: var(--border); background: var(--surface); }
196
+ .ai-chat-provider-switch[hidden] { display: none; }
149
197
  .ai-chat-integration-setting {
150
198
  grid-column: 1 / -1;
151
199
  display: flex;
@@ -206,14 +254,19 @@
206
254
  .ai-chat-picker::-webkit-scrollbar,
207
255
  .ai-chat-history::-webkit-scrollbar,
208
256
  .ai-chat-feed::-webkit-scrollbar,
257
+ .ai-chat-settings::-webkit-scrollbar,
209
258
  .ai-chat-skills::-webkit-scrollbar { width: 7px; height: 7px; }
210
259
  .ai-chat-picker::-webkit-scrollbar-track,
211
260
  .ai-chat-history::-webkit-scrollbar-track,
212
261
  .ai-chat-feed::-webkit-scrollbar-track,
213
262
  .ai-chat-skills::-webkit-scrollbar-track { background: transparent; }
263
+ /* The strip paints its hairline grid with a var(--border) background, so a transparent track
264
+ would read as a stripe of hairline colour — give it the tile surface instead. */
265
+ .ai-chat-settings::-webkit-scrollbar-track { background: var(--surface); }
214
266
  .ai-chat-picker::-webkit-scrollbar-thumb,
215
267
  .ai-chat-history::-webkit-scrollbar-thumb,
216
268
  .ai-chat-feed::-webkit-scrollbar-thumb,
269
+ .ai-chat-settings::-webkit-scrollbar-thumb,
217
270
  .ai-chat-skills::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
218
271
  .ai-chat-choice {
219
272
  appearance: none;
@@ -401,11 +454,22 @@
401
454
  display: flex;
402
455
  flex-direction: column;
403
456
  gap: 12px;
404
- padding: 12px 12px 28px 14px;
457
+ /* Horizontal gutters stay in padding; the vertical ones are flex spacers below. Vertical padding
458
+ would floor the feed's border-box height at 40px even when its grid track is 0 — an invisible
459
+ box lying over the composer in a short panel (#1492). Content is clipped by overflow; padding
460
+ is not, so the gutters have to be content. */
461
+ padding: 0 12px 0 14px;
405
462
  scrollbar-width: thin;
406
463
  scrollbar-color: var(--border-strong) var(--surface);
407
464
  overscroll-behavior: contain;
408
465
  }
466
+ /* The spacers reproduce the old 12px top / 28px bottom gutters exactly: the 12px flex gap sits
467
+ between each spacer and the nearest row, so the top one needs no height of its own and the
468
+ bottom one needs 16px. Keeping them as content is what lets the feed collapse to nothing. */
469
+ .ai-chat-feed::before,
470
+ .ai-chat-feed::after { content: ''; flex: none; }
471
+ .ai-chat-feed::before { height: 0; }
472
+ .ai-chat-feed::after { height: 16px; }
409
473
  .ai-chat-empty {
410
474
  margin: auto 0;
411
475
  padding: 22px 14px;
@@ -417,7 +481,13 @@
417
481
  text-align: center;
418
482
  }
419
483
  .ai-chat-empty strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 13px; }
484
+ /* The sign-in button inside the empty state: the settings strip's control, not a primary CTA — the
485
+ dashed muted box sets the tone. Inline so text-align centres it; the grid placement the shared
486
+ class carries is inert outside the settings grid. */
487
+ .ai-chat-empty-signin { display: inline-flex; margin-top: 10px; padding: 4px 10px; font-size: 11px; }
420
488
  .ai-chat-provider-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
489
+ .ai-chat-provider-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; color: var(--text-dim); font: 9.5px/1.4 var(--mono); }
490
+ .ai-chat-provider-accounts > span { min-width: 0; overflow-wrap: anywhere; }
421
491
  .ai-chat-start-provider { min-width: 0; padding: 7px 8px; font-size: 11px; }
422
492
 
423
493
  .ai-chat-message { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
@@ -558,8 +628,9 @@
558
628
  }
559
629
  .ai-chat-approval strong { display: block; color: var(--text); font-size: 11px; }
560
630
  .ai-chat-approval p { margin: 5px 0 8px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
561
- .ai-chat-approval-actions { display: flex; justify-content: flex-end; gap: 6px; }
631
+ .ai-chat-approval-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
562
632
  .ai-chat-approval button { padding: 5px 9px; font-size: 10px; }
633
+ .ai-chat-approval-scope { border-color: var(--border-strong); background: var(--surface-2); }
563
634
  .ai-chat-approval .allow { border-color: var(--accent); color: var(--text); }
564
635
  /* Managed runtime setup (FloLess installing its tested Claude Code / Codex). Neutral while setting up —
565
636
  nothing has gone wrong — with the approval card's warn tint only once setup failed. There is no byte
@@ -685,6 +756,9 @@
685
756
 
686
757
  @media (max-width: 900px) {
687
758
  .ai-chat-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
759
+ /* Two columns leave model | effort on one row and Access alone on the next. The strip's own
760
+ background is the 1px grid line colour, so the empty half-row reads as a solid block. */
761
+ #chat-permission { grid-column: 1 / -1; }
688
762
  .ai-chat-picker { top: 112px; }
689
763
  }
690
764
  @media (prefers-reduced-motion: reduce) {