claude-code-cost 0.20.0 → 0.21.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/package.json +1 -1
- package/public/app.js +185 -2
- package/public/index.html +13 -30
- package/public/style.css +172 -24
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -2469,7 +2469,6 @@ async function navigate(view, params) {
|
|
|
2469
2469
|
if (view !== 'detail') selectRow(0);
|
|
2470
2470
|
}
|
|
2471
2471
|
|
|
2472
|
-
// biome-ignore lint/correctness/noUnusedVariables: called from HTML onclick
|
|
2473
2472
|
async function navigateToSessions(encodedPath, name) {
|
|
2474
2473
|
lastSelectedProject = encodedPath;
|
|
2475
2474
|
currentProjectPath = encodedPath;
|
|
@@ -2668,7 +2667,183 @@ function ensureViewElements() {
|
|
|
2668
2667
|
|
|
2669
2668
|
// #region MODAL
|
|
2670
2669
|
|
|
2670
|
+
// The picker drills in — it navigates to a project's sessions view. That is a different act
|
|
2671
|
+
// from the hub's scope chip, which filters every view without moving the cursor.
|
|
2672
|
+
let pickerProjects = [];
|
|
2673
|
+
let pickerRows = [];
|
|
2674
|
+
let pickerIdx = 0;
|
|
2675
|
+
|
|
2676
|
+
async function openProjectPicker() {
|
|
2677
|
+
const modal = document.getElementById('projectPickerModal');
|
|
2678
|
+
const input = document.getElementById('projectPickerInput');
|
|
2679
|
+
const list = document.getElementById('projectPickerList');
|
|
2680
|
+
modal.classList.add('visible');
|
|
2681
|
+
input.value = '';
|
|
2682
|
+
input.focus();
|
|
2683
|
+
list.innerHTML = '<div class="picker-empty">Loading...</div>';
|
|
2684
|
+
try {
|
|
2685
|
+
// Deliberately unscoped: a switcher that only lists the project you are already scoped to
|
|
2686
|
+
// cannot switch anything.
|
|
2687
|
+
pickerProjects = ((await fetchJSON(`/api/projects?${rangeParams()}`)) || []).sort((a, b) =>
|
|
2688
|
+
sortCompare(a, b, 'totalCost', 'desc'),
|
|
2689
|
+
);
|
|
2690
|
+
} catch {
|
|
2691
|
+
pickerProjects = [];
|
|
2692
|
+
list.innerHTML = '<div class="picker-empty">Failed to load projects</div>';
|
|
2693
|
+
return;
|
|
2694
|
+
}
|
|
2695
|
+
renderProjectPicker();
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
function closeProjectPicker() {
|
|
2699
|
+
document.getElementById('projectPickerModal').classList.remove('visible');
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
function renderProjectPicker() {
|
|
2703
|
+
const list = document.getElementById('projectPickerList');
|
|
2704
|
+
const q = document.getElementById('projectPickerInput').value.trim().toLowerCase();
|
|
2705
|
+
pickerRows = q ? pickerProjects.filter((p) => p.name.toLowerCase().includes(q)) : pickerProjects;
|
|
2706
|
+
if (!pickerRows.length) {
|
|
2707
|
+
list.innerHTML = '<div class="picker-empty">No projects match</div>';
|
|
2708
|
+
return;
|
|
2709
|
+
}
|
|
2710
|
+
list.innerHTML = pickerRows
|
|
2711
|
+
.map(
|
|
2712
|
+
(p, i) => `<button class="picker-row" onclick="pickProject(${i})">
|
|
2713
|
+
<span class="picker-name">${esc(p.name)}</span>
|
|
2714
|
+
<span class="picker-cost">${formatCost(p.totalCost)}</span>
|
|
2715
|
+
</button>`,
|
|
2716
|
+
)
|
|
2717
|
+
.join('');
|
|
2718
|
+
setPickerCursor(0);
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
function setPickerCursor(idx) {
|
|
2722
|
+
const list = document.getElementById('projectPickerList');
|
|
2723
|
+
list.children[pickerIdx]?.classList.remove('selected');
|
|
2724
|
+
pickerIdx = Math.min(Math.max(idx, 0), pickerRows.length - 1);
|
|
2725
|
+
const row = list.children[pickerIdx];
|
|
2726
|
+
row?.classList.add('selected');
|
|
2727
|
+
row?.scrollIntoView({ block: 'nearest' });
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
function pickProject(idx) {
|
|
2731
|
+
const p = pickerRows[idx];
|
|
2732
|
+
if (!p) return;
|
|
2733
|
+
closeProjectPicker();
|
|
2734
|
+
navigateToSessions(p.encodedPath, p.name);
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
function initProjectPicker() {
|
|
2738
|
+
const input = document.getElementById('projectPickerInput');
|
|
2739
|
+
input.addEventListener('input', renderProjectPicker);
|
|
2740
|
+
// Bound on the input because the global handler bails out on INPUT targets.
|
|
2741
|
+
input.addEventListener('keydown', (e) => {
|
|
2742
|
+
if (e.key === 'Escape') {
|
|
2743
|
+
e.preventDefault();
|
|
2744
|
+
closeProjectPicker();
|
|
2745
|
+
} else if (e.key === 'ArrowDown' || (e.key === 'n' && e.ctrlKey)) {
|
|
2746
|
+
e.preventDefault();
|
|
2747
|
+
setPickerCursor(pickerIdx + 1);
|
|
2748
|
+
} else if (e.key === 'ArrowUp' || (e.key === 'p' && e.ctrlKey)) {
|
|
2749
|
+
e.preventDefault();
|
|
2750
|
+
setPickerCursor(pickerIdx - 1);
|
|
2751
|
+
} else if (e.key === 'Enter') {
|
|
2752
|
+
e.preventDefault();
|
|
2753
|
+
pickProject(pickerIdx);
|
|
2754
|
+
}
|
|
2755
|
+
});
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
// Each entry pairs a left and a right group onto the same grid rows, so their
|
|
2759
|
+
// headings sit level and the shorter group just leaves empty rows.
|
|
2760
|
+
// `combo` joins the keys with a plus (a chord) instead of listing them as
|
|
2761
|
+
// alternatives; `hub` marks rows that only work inside Claude Code Hub.
|
|
2762
|
+
const SHORTCUT_PAIRS = [
|
|
2763
|
+
[
|
|
2764
|
+
{
|
|
2765
|
+
title: 'Navigate',
|
|
2766
|
+
rows: [
|
|
2767
|
+
{ keys: ['1'], label: 'Overview' },
|
|
2768
|
+
{ keys: ['2'], label: 'Insights' },
|
|
2769
|
+
{ keys: ['Backspace'], label: 'Go back' },
|
|
2770
|
+
{ keys: ['Shift', 'P'], combo: true, label: 'Switch project' },
|
|
2771
|
+
{ keys: ['Esc'], label: 'Close modal / go back' },
|
|
2772
|
+
],
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
title: 'Table',
|
|
2776
|
+
rows: [
|
|
2777
|
+
{ keys: ['J', '↓'], label: 'Next row' },
|
|
2778
|
+
{ keys: ['K', '↑'], label: 'Previous row' },
|
|
2779
|
+
{ keys: ['Enter', 'Space'], label: 'Open selected row' },
|
|
2780
|
+
],
|
|
2781
|
+
},
|
|
2782
|
+
],
|
|
2783
|
+
[
|
|
2784
|
+
{
|
|
2785
|
+
title: 'Timeline range',
|
|
2786
|
+
rows: [
|
|
2787
|
+
{ keys: ['←', '→'], label: 'Pan one step' },
|
|
2788
|
+
{ keys: ['Shift', '←/→'], combo: true, label: 'Pan a full window' },
|
|
2789
|
+
{ keys: ['Home', 'End'], label: 'Jump to start / end' },
|
|
2790
|
+
],
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
title: 'View',
|
|
2794
|
+
rows: [
|
|
2795
|
+
{ keys: ['R'], label: 'Refresh data' },
|
|
2796
|
+
{ keys: ['T'], label: 'Toggle theme' },
|
|
2797
|
+
{ keys: ['?'], label: 'Show this help' },
|
|
2798
|
+
],
|
|
2799
|
+
},
|
|
2800
|
+
],
|
|
2801
|
+
[
|
|
2802
|
+
{
|
|
2803
|
+
title: 'Hub',
|
|
2804
|
+
hub: true,
|
|
2805
|
+
rows: [
|
|
2806
|
+
{ keys: ['Ctrl', 'Alt', '←/→'], combo: true, label: 'Previous / next hub app' },
|
|
2807
|
+
{ keys: ['Alt', '1…9'], combo: true, label: 'Jump to hub app by number' },
|
|
2808
|
+
{ keys: ['Ctrl', 'Alt', 'P'], combo: true, label: 'Project picker' },
|
|
2809
|
+
],
|
|
2810
|
+
},
|
|
2811
|
+
],
|
|
2812
|
+
];
|
|
2813
|
+
|
|
2814
|
+
const EMPTY_GROUP = { title: '', rows: [] };
|
|
2815
|
+
|
|
2816
|
+
// Interleaves each pair's rows left-then-right so CSS grid auto-placement lands
|
|
2817
|
+
// them on shared row tracks (see .shortcuts in style.css).
|
|
2818
|
+
function buildHelpShortcuts() {
|
|
2819
|
+
const cells = [];
|
|
2820
|
+
SHORTCUT_PAIRS.forEach(([left, right = EMPTY_GROUP], pair) => {
|
|
2821
|
+
const first = pair === 0 ? ' sc-first' : '';
|
|
2822
|
+
const sides = [
|
|
2823
|
+
[left, 'sc-l'],
|
|
2824
|
+
[right, 'sc-r'],
|
|
2825
|
+
];
|
|
2826
|
+
const head = (g, side) =>
|
|
2827
|
+
g.title ? `<div class="${esc(`sc-group ${side}${first}${g.hub ? ' sc-hub' : ''}`)}">${g.title}</div>` : '';
|
|
2828
|
+
cells.push(sides.map(([g, side]) => head(g, side)).join(''));
|
|
2829
|
+
for (let i = 0; i < Math.max(left.rows.length, right.rows.length); i++) {
|
|
2830
|
+
for (const [group, side] of sides) {
|
|
2831
|
+
const row = group.rows[i];
|
|
2832
|
+
if (!row) continue;
|
|
2833
|
+
const sep = row.combo ? '<span class="sc-plus">+</span>' : '<span class="sc-or">/</span>';
|
|
2834
|
+
const keys = row.keys.map((k) => `<kbd>${esc(k)}</kbd>`).join(sep);
|
|
2835
|
+
const cls = side + (group.hub ? ' sc-hub' : '');
|
|
2836
|
+
cells.push(`<dt class="${esc(cls)}">${keys}</dt><dd class="${esc(cls)}">${esc(row.label)}</dd>`);
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
});
|
|
2840
|
+
return cells.join('');
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2671
2843
|
function toggleHelpModal() {
|
|
2844
|
+
const list = document.getElementById('helpShortcuts');
|
|
2845
|
+
if (!list.childElementCount) list.innerHTML = buildHelpShortcuts();
|
|
2846
|
+
list.classList.toggle('sc-standalone', !window.__HUB__?.enabled);
|
|
2672
2847
|
document.getElementById('helpModal').classList.toggle('visible');
|
|
2673
2848
|
}
|
|
2674
2849
|
|
|
@@ -2733,7 +2908,7 @@ document.addEventListener('keydown', (e) => {
|
|
|
2733
2908
|
|
|
2734
2909
|
const anyModal = document.querySelector('.modal-overlay.visible');
|
|
2735
2910
|
if (anyModal) {
|
|
2736
|
-
if (e.key === 'Escape') {
|
|
2911
|
+
if (e.key === 'Escape' || (e.key === '?' && anyModal.id === 'helpModal')) {
|
|
2737
2912
|
anyModal.classList.remove('visible');
|
|
2738
2913
|
e.preventDefault();
|
|
2739
2914
|
}
|
|
@@ -2752,6 +2927,13 @@ document.addEventListener('keydown', (e) => {
|
|
|
2752
2927
|
|
|
2753
2928
|
if (e.ctrlKey || e.altKey || e.metaKey) return;
|
|
2754
2929
|
|
|
2930
|
+
// Shift+P is the project switcher across the hub apps; matches memory and marketplace.
|
|
2931
|
+
if (e.key === 'P' && e.shiftKey) {
|
|
2932
|
+
e.preventDefault();
|
|
2933
|
+
openProjectPicker();
|
|
2934
|
+
return;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2755
2937
|
if (e.key === '?' || (e.key === '/' && e.shiftKey)) {
|
|
2756
2938
|
e.preventDefault();
|
|
2757
2939
|
toggleHelpModal();
|
|
@@ -2989,6 +3171,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|
|
2989
3171
|
dateRange = loadDateRange();
|
|
2990
3172
|
buildRangePresets();
|
|
2991
3173
|
renderRangeTrigger();
|
|
3174
|
+
initProjectPicker();
|
|
2992
3175
|
|
|
2993
3176
|
// Resolve the scope before any navigate() so the first /api/overview already carries
|
|
2994
3177
|
// &project=. Read window.location.search directly, not getUrlState() — that falls back to
|
package/public/index.html
CHANGED
|
@@ -95,9 +95,10 @@
|
|
|
95
95
|
</div>
|
|
96
96
|
|
|
97
97
|
<div class="modal-overlay" id="helpModal" onclick="if(event.target===this)toggleHelpModal()">
|
|
98
|
-
<div class="modal-box">
|
|
98
|
+
<div class="modal-box modal-help">
|
|
99
99
|
<div class="modal-header">
|
|
100
100
|
<div class="modal-title">Cost Dashboard</div>
|
|
101
|
+
<button class="modal-close" aria-label="Close dialog" onclick="toggleHelpModal()">✕</button>
|
|
101
102
|
</div>
|
|
102
103
|
<div class="modal-body">
|
|
103
104
|
<div class="modal-section">
|
|
@@ -106,36 +107,18 @@
|
|
|
106
107
|
</div>
|
|
107
108
|
<hr class="modal-divider">
|
|
108
109
|
<h4 class="shortcut-section">Keyboard Shortcuts</h4>
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
</div>
|
|
119
|
-
<div>
|
|
120
|
-
<h4 class="shortcut-section">Table</h4>
|
|
121
|
-
<table class="shortcut-table">
|
|
122
|
-
<tr><td><kbd>J</kbd> / <kbd>↓</kbd></td><td>Next row</td></tr>
|
|
123
|
-
<tr><td><kbd>K</kbd> / <kbd>↑</kbd></td><td>Previous row</td></tr>
|
|
124
|
-
<tr><td><kbd>Enter</kbd></td><td>Open selected row</td></tr>
|
|
125
|
-
</table>
|
|
126
|
-
</div>
|
|
127
|
-
<div>
|
|
128
|
-
<h4 class="shortcut-section">Actions</h4>
|
|
129
|
-
<table class="shortcut-table">
|
|
130
|
-
<tr><td><kbd>R</kbd></td><td>Refresh data</td></tr>
|
|
131
|
-
<tr><td><kbd>T</kbd></td><td>Toggle theme</td></tr>
|
|
132
|
-
<tr><td><kbd>?</kbd></td><td>Show this help</td></tr>
|
|
133
|
-
<tr><td><kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>P</kbd></td><td>Switch project (hub only)</td></tr>
|
|
134
|
-
</table>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
110
|
+
<dl class="shortcuts" id="helpShortcuts"></dl>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<div class="modal-overlay" id="projectPickerModal" onclick="if(event.target===this)closeProjectPicker()">
|
|
116
|
+
<div class="modal-box picker-box">
|
|
117
|
+
<div class="modal-header">
|
|
118
|
+
<div class="modal-title">Switch project</div>
|
|
137
119
|
</div>
|
|
138
|
-
<
|
|
120
|
+
<input class="picker-input" id="projectPickerInput" type="text" placeholder="Filter projects..." autocomplete="off" spellcheck="false">
|
|
121
|
+
<div class="picker-list" id="projectPickerList"></div>
|
|
139
122
|
</div>
|
|
140
123
|
</div>
|
|
141
124
|
|
package/public/style.css
CHANGED
|
@@ -1379,21 +1379,16 @@ body.light .rb-window {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
1381
|
.modal-close {
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
border: 1px solid var(--border);
|
|
1387
|
-
border-radius: 6px;
|
|
1388
|
-
color: var(--text-secondary);
|
|
1382
|
+
padding: 2px;
|
|
1383
|
+
background: none;
|
|
1384
|
+
border: none;
|
|
1385
|
+
color: var(--text-muted);
|
|
1389
1386
|
cursor: pointer;
|
|
1390
|
-
font-
|
|
1391
|
-
|
|
1392
|
-
text-transform: uppercase;
|
|
1387
|
+
font-size: 16px;
|
|
1388
|
+
line-height: 1;
|
|
1393
1389
|
}
|
|
1394
1390
|
|
|
1395
1391
|
.modal-close:hover {
|
|
1396
|
-
background: var(--bg-hover);
|
|
1397
1392
|
color: var(--text-primary);
|
|
1398
1393
|
}
|
|
1399
1394
|
|
|
@@ -1408,18 +1403,93 @@ body.light .rb-window {
|
|
|
1408
1403
|
margin-bottom: 0;
|
|
1409
1404
|
}
|
|
1410
1405
|
|
|
1406
|
+
/* The paired shortcut columns need room the 500px default cannot give. */
|
|
1407
|
+
.modal-box.modal-help {
|
|
1408
|
+
max-width: 960px;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.picker-box {
|
|
1412
|
+
max-width: 560px;
|
|
1413
|
+
padding: 16px;
|
|
1414
|
+
display: flex;
|
|
1415
|
+
flex-direction: column;
|
|
1416
|
+
gap: 10px;
|
|
1417
|
+
overflow: hidden;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.picker-input {
|
|
1421
|
+
width: 100%;
|
|
1422
|
+
padding: 8px 10px;
|
|
1423
|
+
background: var(--bg-deep);
|
|
1424
|
+
border: 1px solid var(--border);
|
|
1425
|
+
border-radius: 6px;
|
|
1426
|
+
color: var(--text-primary);
|
|
1427
|
+
font-family: inherit;
|
|
1428
|
+
font-size: 13px;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.picker-input:focus {
|
|
1432
|
+
outline: none;
|
|
1433
|
+
border-color: var(--accent);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
.picker-list {
|
|
1437
|
+
max-height: 50vh;
|
|
1438
|
+
overflow-y: auto;
|
|
1439
|
+
display: flex;
|
|
1440
|
+
flex-direction: column;
|
|
1441
|
+
gap: 2px;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.picker-row {
|
|
1445
|
+
display: flex;
|
|
1446
|
+
align-items: center;
|
|
1447
|
+
justify-content: space-between;
|
|
1448
|
+
gap: 12px;
|
|
1449
|
+
width: 100%;
|
|
1450
|
+
padding: 7px 10px;
|
|
1451
|
+
background: none;
|
|
1452
|
+
border: 1px solid transparent;
|
|
1453
|
+
border-radius: 6px;
|
|
1454
|
+
color: var(--text-primary);
|
|
1455
|
+
font-family: inherit;
|
|
1456
|
+
font-size: 13px;
|
|
1457
|
+
text-align: left;
|
|
1458
|
+
cursor: pointer;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
.picker-row:hover {
|
|
1462
|
+
background: var(--bg-hover);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.picker-row.selected {
|
|
1466
|
+
background: var(--bg-hover);
|
|
1467
|
+
border-color: var(--accent);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.picker-name {
|
|
1471
|
+
overflow: hidden;
|
|
1472
|
+
text-overflow: ellipsis;
|
|
1473
|
+
white-space: nowrap;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.picker-cost {
|
|
1477
|
+
color: var(--text-secondary);
|
|
1478
|
+
white-space: nowrap;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.picker-empty {
|
|
1482
|
+
padding: 12px 10px;
|
|
1483
|
+
color: var(--text-muted);
|
|
1484
|
+
font-size: 12px;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1411
1487
|
.modal-divider {
|
|
1412
1488
|
border: none;
|
|
1413
1489
|
border-top: 1px solid var(--border);
|
|
1414
1490
|
margin: 16px 0;
|
|
1415
1491
|
}
|
|
1416
1492
|
|
|
1417
|
-
.shortcut-grid {
|
|
1418
|
-
display: grid;
|
|
1419
|
-
grid-template-columns: 1fr 1fr;
|
|
1420
|
-
gap: 20px;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
1493
|
.shortcut-section {
|
|
1424
1494
|
margin: 0 0 8px 0;
|
|
1425
1495
|
color: var(--text-primary);
|
|
@@ -1427,22 +1497,100 @@ body.light .rb-window {
|
|
|
1427
1497
|
font-weight: 600;
|
|
1428
1498
|
}
|
|
1429
1499
|
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1500
|
+
/* One shared grid for both halves (key | label | spacer | key | label): each key
|
|
1501
|
+
gutter is sized by its column's widest combo, and left/right rows share row
|
|
1502
|
+
tracks, so paired groups line up — a shorter group just leaves empty rows.
|
|
1503
|
+
Cells opt into a half via sc-l / sc-r; the markup is generated from
|
|
1504
|
+
SHORTCUT_PAIRS in app.js. */
|
|
1505
|
+
.shortcuts {
|
|
1506
|
+
margin: 0;
|
|
1507
|
+
display: grid;
|
|
1508
|
+
grid-template-columns: max-content 1fr 28px max-content 1fr;
|
|
1509
|
+
column-gap: 14px;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
.shortcuts dt.sc-l {
|
|
1513
|
+
grid-column: 1;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.shortcuts dd.sc-l {
|
|
1517
|
+
grid-column: 2;
|
|
1433
1518
|
}
|
|
1434
1519
|
|
|
1435
|
-
.
|
|
1520
|
+
.shortcuts dt.sc-r {
|
|
1521
|
+
grid-column: 4;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.shortcuts dd.sc-r {
|
|
1525
|
+
grid-column: 5;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.shortcuts .sc-group.sc-l {
|
|
1529
|
+
grid-column: 1 / 3;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
.shortcuts .sc-group.sc-r {
|
|
1533
|
+
grid-column: 4 / 6;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.shortcuts dt {
|
|
1537
|
+
margin: 0;
|
|
1538
|
+
display: flex;
|
|
1539
|
+
align-items: center;
|
|
1540
|
+
align-self: center;
|
|
1541
|
+
gap: 4px;
|
|
1436
1542
|
padding: 3px 0;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.shortcuts dd {
|
|
1546
|
+
margin: 0;
|
|
1547
|
+
font-size: 13px;
|
|
1437
1548
|
color: var(--text-secondary);
|
|
1549
|
+
align-self: center;
|
|
1550
|
+
padding: 3px 0;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
/* Section headings carry the column: full-width rule + primary ink, so the eye
|
|
1554
|
+
finds the group before it reads any single row. */
|
|
1555
|
+
.shortcuts .sc-group {
|
|
1556
|
+
padding: 18px 0 6px;
|
|
1557
|
+
margin-bottom: 6px;
|
|
1558
|
+
font-size: 11px;
|
|
1559
|
+
font-weight: 700;
|
|
1560
|
+
letter-spacing: 0.16em;
|
|
1561
|
+
text-transform: uppercase;
|
|
1562
|
+
color: var(--text-primary);
|
|
1563
|
+
border-bottom: 1px solid var(--border);
|
|
1438
1564
|
}
|
|
1439
1565
|
|
|
1440
|
-
.
|
|
1441
|
-
|
|
1566
|
+
.shortcuts .sc-group.sc-first {
|
|
1567
|
+
padding-top: 2px;
|
|
1442
1568
|
}
|
|
1443
1569
|
|
|
1444
|
-
|
|
1570
|
+
/* keycap chips: thicker bottom border reads as a key */
|
|
1571
|
+
.shortcuts kbd {
|
|
1572
|
+
display: inline-flex;
|
|
1573
|
+
align-items: center;
|
|
1574
|
+
justify-content: center;
|
|
1575
|
+
min-width: 22px;
|
|
1576
|
+
height: 22px;
|
|
1577
|
+
padding: 0 6px;
|
|
1578
|
+
box-sizing: border-box;
|
|
1445
1579
|
color: var(--text-primary);
|
|
1580
|
+
border-bottom-width: 2px;
|
|
1581
|
+
border-radius: 5px;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
.shortcuts .sc-plus,
|
|
1585
|
+
.shortcuts .sc-or {
|
|
1586
|
+
color: var(--text-muted);
|
|
1587
|
+
font-size: 11px;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
/* Hub keys do nothing outside Claude Code Hub, so the standalone app hides that
|
|
1591
|
+
whole column rather than listing keys that no-op. */
|
|
1592
|
+
.shortcuts.sc-standalone .sc-hub {
|
|
1593
|
+
display: none;
|
|
1446
1594
|
}
|
|
1447
1595
|
|
|
1448
1596
|
kbd {
|