@opencode/ui 0.0.0-dev-236 → 0.0.0-dev-241

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/i18n/en.d.ts CHANGED
@@ -258,6 +258,7 @@ declare const source: {
258
258
  "ui.message.copyFullMessage": string;
259
259
  "ui.message.forkMessage": string;
260
260
  "ui.message.revertMessage": string;
261
+ "ui.message.moreActions": string;
261
262
  "ui.message.moveToQueue": string;
262
263
  "ui.message.pending": string;
263
264
  "ui.message.voice": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "0.0.0-dev-236",
3
+ "version": "0.0.0-dev-241",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -288,7 +288,7 @@
288
288
  "dependencies": {
289
289
  "@kitlangton/solid-motion": "0.2.2",
290
290
  "@kobalte/core": "0.13.13",
291
- "@opencode/util": "0.0.0-dev-236",
291
+ "@opencode/util": "0.0.0-dev-241",
292
292
  "@pierre/diffs": "1.6.1",
293
293
  "@pierre/highlights": "0.2.0",
294
294
  "@solid-primitives/event-listener": "2.4.6",
package/src/i18n/en.ts CHANGED
@@ -284,6 +284,7 @@ const source = {
284
284
  "ui.message.copyFullMessage": "Copy full message",
285
285
  "ui.message.forkMessage": "Fork from here",
286
286
  "ui.message.revertMessage": "Rewind to here",
287
+ "ui.message.moreActions": "More actions",
287
288
  "ui.message.moveToQueue": "Move to queue",
288
289
  "ui.message.pending": "Pending",
289
290
  "ui.message.voice": "Voice",
@@ -495,10 +495,20 @@
495
495
  padding-inline-end: 12px;
496
496
  gap: 8px;
497
497
  --tabs-review-fade: 8px;
498
+
499
+ /* Like browser tabs, each tab keeps its natural width while they all fit; otherwise the longest titles truncate
500
+ first, and the strip scrolls only once every tab is at its minimum. Close buttons stay in view meanwhile. */
501
+ > :not(.sticky) {
502
+ flex: 1 1 0;
503
+ min-width: 72px;
504
+ max-width: max-content;
505
+ }
498
506
  }
499
507
 
500
508
  [data-slot="tabs-trigger-wrapper"] {
501
509
  height: 28px;
510
+ min-width: 0;
511
+ flex-shrink: 1;
502
512
  padding-inline: 10px;
503
513
  border: 0;
504
514
  background-color: transparent;
@@ -510,6 +520,15 @@
510
520
 
511
521
  [data-slot="tabs-trigger"] {
512
522
  padding: 0 !important;
523
+
524
+ /* A plugin's label shrinks with the tab so its own `truncate` text can ellipsize. */
525
+ > * {
526
+ min-width: 0;
527
+ }
528
+ }
529
+
530
+ [data-slot="tabs-trigger-close-button"] {
531
+ flex-shrink: 0;
513
532
  }
514
533
 
515
534
  /* The 20px close button sits 4px from the tab's end, as from its top and bottom. */