sitevision-cli 1.0.0-beta.19 → 1.0.0-beta.20
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/shell/Frame.js +4 -3
- package/package.json +1 -1
package/dist/shell/Frame.js
CHANGED
|
@@ -59,8 +59,9 @@ export function navMove(ring, selected, delta) {
|
|
|
59
59
|
return ring[at === -1 ? 0 : (at + delta + ring.length) % ring.length];
|
|
60
60
|
}
|
|
61
61
|
export function Navigator({ apps, groupOf, selected, focused, tasks, height, single, settingsSelected = false, width, filter = '', }) {
|
|
62
|
-
// Row: marker(1) glyph(3) sp name sp version(6) sp dots(4) inside
|
|
63
|
-
const
|
|
62
|
+
// Row: marker(1) glyph(3) sp name sp version(6) sp dots(4) inside padding + border.
|
|
63
|
+
const rowWidth = width - 3;
|
|
64
|
+
const nameWidth = rowWidth - 17;
|
|
64
65
|
const running = tasks.filter(task => task.status === 'running');
|
|
65
66
|
// Every row is exactly one line; nothing may shrink or the rows overlap.
|
|
66
67
|
const rows = [];
|
|
@@ -77,7 +78,7 @@ export function Navigator({ apps, groupOf, selected, focused, tasks, height, sin
|
|
|
77
78
|
const active = index === selected;
|
|
78
79
|
const busy = running.some(task => task.appRoot === app.root);
|
|
79
80
|
const name = appLabel(app);
|
|
80
|
-
rows.push(_jsxs(Box, { width:
|
|
81
|
+
rows.push(_jsxs(Box, { width: rowWidth, height: 1, flexShrink: 0, children: [_jsxs(Text, { backgroundColor: active && focused ? ACCENT : undefined, color: active && focused ? 'black' : undefined, bold: active, wrap: "truncate", children: [active ? '▎' : ' ', _jsx(Text, { dimColor: !active, children: typeGlyph(app.manifest) }), ' ', name.padEnd(nameWidth).slice(0, nameWidth), ' ', _jsx(Text, { dimColor: true, children: app.manifest.version.padStart(6).slice(0, 6) }), ' '] }), busy ? (_jsx(Text, { color: ACCENT, children: _jsx(Spinner, { type: "dots" }) })) : (_jsx(Dots, { project: app }))] }, app.root));
|
|
81
82
|
}
|
|
82
83
|
if (rows.length === 0) {
|
|
83
84
|
rows.push(_jsx(Box, { height: 1, flexShrink: 0, children: _jsx(Text, { dimColor: true, children: ' ' + t('no matches') }) }, "none"));
|