@bakapiano/ccsm 0.10.3 → 0.11.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/CLAUDE.md +475 -475
- package/README.md +190 -190
- package/bin/ccsm.js +194 -194
- package/lib/cliSessionWatcher.js +249 -249
- package/lib/config.js +185 -185
- package/lib/folders.js +96 -96
- package/lib/localCliSessions.js +489 -177
- package/lib/persistedSessions.js +134 -134
- package/lib/webTerminal.js +208 -208
- package/lib/workspace.js +230 -255
- package/package.json +57 -57
- package/public/css/base.css +99 -99
- package/public/css/cards.css +183 -183
- package/public/css/feedback.css +303 -303
- package/public/css/forms.css +405 -405
- package/public/css/layout.css +160 -160
- package/public/css/modal.css +190 -183
- package/public/css/responsive.css +10 -10
- package/public/css/sidebar.css +616 -601
- package/public/css/terminals.css +294 -294
- package/public/css/tokens.css +81 -79
- package/public/css/wco.css +98 -98
- package/public/css/widgets.css +1596 -1375
- package/public/index.html +105 -103
- package/public/js/api.js +272 -260
- package/public/js/components/AdoptModal.js +343 -171
- package/public/js/components/App.js +35 -35
- package/public/js/components/DirectoryPicker.js +203 -203
- package/public/js/components/EntityFormModal.js +105 -105
- package/public/js/components/Modal.js +51 -51
- package/public/js/components/OfflineBanner.js +93 -93
- package/public/js/components/PageTitleBar.js +13 -13
- package/public/js/components/Picker.js +179 -179
- package/public/js/components/Popover.js +55 -55
- package/public/js/components/Sidebar.js +270 -270
- package/public/js/components/TerminalView.js +298 -298
- package/public/js/components/useDragSort.js +67 -67
- package/public/js/dialog.js +67 -67
- package/public/js/icons.js +177 -177
- package/public/js/main.js +140 -140
- package/public/js/pages/AboutPage.js +165 -165
- package/public/js/pages/ConfigurePage.js +475 -487
- package/public/js/pages/LaunchPage.js +369 -369
- package/public/js/pages/SessionsPage.js +97 -97
- package/public/js/state.js +231 -231
- package/public/manifest.webmanifest +15 -15
- package/scripts/install.js +137 -137
- package/server.js +1126 -1117
package/public/css/sidebar.css
CHANGED
|
@@ -1,601 +1,616 @@
|
|
|
1
|
-
/* Left collapsible sidebar nav · brand mark · util items · collapse toggle */
|
|
2
|
-
|
|
3
|
-
.sidebar {
|
|
4
|
-
position: sticky;
|
|
5
|
-
top: 0;
|
|
6
|
-
height: 100vh;
|
|
7
|
-
background: var(--ui-bg);
|
|
8
|
-
border-right: 1px solid var(--ui-border);
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
padding: 0 var(--s-2);
|
|
12
|
-
overflow: visible;
|
|
13
|
-
transition: padding .25s cubic-bezier(.4, 0, .2, 1);
|
|
14
|
-
}
|
|
15
|
-
.sidebar[data-collapsed="true"] {
|
|
16
|
-
padding: 0;
|
|
17
|
-
}
|
|
18
|
-
/* Collapsed: every clickable row becomes a 28x28 square, centered in
|
|
19
|
-
the narrow sidebar column. Width auto + margin auto so the square
|
|
20
|
-
sits centered regardless of what padding the parent has. */
|
|
21
|
-
.sidebar[data-collapsed="true"] .nav-item,
|
|
22
|
-
.sidebar[data-collapsed="true"] .util-item,
|
|
23
|
-
.sidebar[data-collapsed="true"] .sidebar-brand-button,
|
|
24
|
-
.sidebar[data-collapsed="true"] .tree-folder-head,
|
|
25
|
-
.sidebar[data-collapsed="true"] .tree-session {
|
|
26
|
-
width: 28px;
|
|
27
|
-
height: 28px;
|
|
28
|
-
min-height: 28px;
|
|
29
|
-
padding: 0;
|
|
30
|
-
margin: 0 auto;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
gap: 0;
|
|
33
|
-
}
|
|
34
|
-
.sidebar[data-collapsed="true"] .sidebar-top {
|
|
35
|
-
padding: 0;
|
|
36
|
-
min-height: 40px;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
}
|
|
39
|
-
.sidebar[data-collapsed="true"] .sidebar-top .collapse-toggle {
|
|
40
|
-
width: 40px;
|
|
41
|
-
height: 40px;
|
|
42
|
-
min-height: 40px;
|
|
43
|
-
margin: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sidebar-brand {
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: var(--s-2);
|
|
50
|
-
padding: 0 var(--s-2);
|
|
51
|
-
min-height: 28px;
|
|
52
|
-
height: 28px;
|
|
53
|
-
}
|
|
54
|
-
.brand-mark {
|
|
55
|
-
display: inline-flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
width: 20px;
|
|
59
|
-
height: 20px;
|
|
60
|
-
flex: 0 0 20px;
|
|
61
|
-
background: transparent;
|
|
62
|
-
color: var(--accent);
|
|
63
|
-
}
|
|
64
|
-
.brand-mark svg { display: block; width: 20px; height: 20px; }
|
|
65
|
-
.brand-name {
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
letter-spacing: -0.02em;
|
|
69
|
-
color: var(--ink);
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
opacity: 1;
|
|
72
|
-
line-height: 1;
|
|
73
|
-
transition: opacity .15s ease;
|
|
74
|
-
}
|
|
75
|
-
.brand-dot { color: var(--accent); }
|
|
76
|
-
.sidebar[data-collapsed="true"] .brand-name { display: none; }
|
|
77
|
-
.sidebar[data-collapsed="true"] .brand-version { display: none; }
|
|
78
|
-
.sidebar[data-collapsed="true"] .sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
|
|
79
|
-
|
|
80
|
-
.sidebar-nav {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
gap: 2px;
|
|
84
|
-
flex: 0 0 auto;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.nav-item, .util-item {
|
|
88
|
-
appearance: none;
|
|
89
|
-
background: transparent;
|
|
90
|
-
border: 0;
|
|
91
|
-
display: flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
gap: var(--s-3);
|
|
94
|
-
width: 100%;
|
|
95
|
-
padding: 0 12px;
|
|
96
|
-
min-height: 42px;
|
|
97
|
-
border-radius: var(--r-sm);
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
color: var(--ink);
|
|
100
|
-
font-family: var(--body);
|
|
101
|
-
font-size: 13px;
|
|
102
|
-
font-weight: 400;
|
|
103
|
-
text-align: left;
|
|
104
|
-
transition: background .12s ease, color .12s ease;
|
|
105
|
-
position: relative;
|
|
106
|
-
}
|
|
107
|
-
.nav-item:hover, .util-item:hover {
|
|
108
|
-
background: var(--sidebar-hover);
|
|
109
|
-
}
|
|
110
|
-
.nav-item[aria-selected="true"] {
|
|
111
|
-
background: var(--sidebar-active);
|
|
112
|
-
color: var(--ink);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/* Unsaved-changes dot next to nav label */
|
|
116
|
-
.nav-item.has-changes::after {
|
|
117
|
-
content: "";
|
|
118
|
-
position: absolute;
|
|
119
|
-
right: 10px;
|
|
120
|
-
top: 50%;
|
|
121
|
-
transform: translateY(-50%);
|
|
122
|
-
width: 7px;
|
|
123
|
-
height: 7px;
|
|
124
|
-
border-radius: 50%;
|
|
125
|
-
background: var(--ink);
|
|
126
|
-
box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.30);
|
|
127
|
-
animation: dirty-pulse 2s ease-in-out infinite;
|
|
128
|
-
}
|
|
129
|
-
@keyframes dirty-pulse {
|
|
130
|
-
0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.22); }
|
|
131
|
-
50% { box-shadow: 0 0 0 4px rgba(26, 24, 21, 0); }
|
|
132
|
-
}
|
|
133
|
-
.sidebar[data-collapsed="true"] .nav-item.has-changes::after {
|
|
134
|
-
right: auto;
|
|
135
|
-
top: 6px;
|
|
136
|
-
left: 28px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.nav-icon {
|
|
140
|
-
display: inline-flex;
|
|
141
|
-
width: 20px;
|
|
142
|
-
height: 20px;
|
|
143
|
-
flex: 0 0 20px;
|
|
144
|
-
color: currentColor;
|
|
145
|
-
}
|
|
146
|
-
.nav-icon svg { width: 100%; height: 100%; }
|
|
147
|
-
.nav-label {
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
opacity: 1;
|
|
150
|
-
transition: opacity .15s ease;
|
|
151
|
-
flex: 1;
|
|
152
|
-
}
|
|
153
|
-
.sidebar[data-collapsed="true"] .nav-label { opacity: 0; pointer-events: none; }
|
|
154
|
-
/* Collapsed sidebar (60px wide): hide the label entirely so the icon
|
|
155
|
-
centers in the narrow column instead of being pushed off-screen by
|
|
156
|
-
the still-laid-out (but invisible) label text. Same for the badge. */
|
|
157
|
-
.sidebar[data-collapsed="true"] .nav-label,
|
|
158
|
-
.sidebar[data-collapsed="true"] .nav-badge {
|
|
159
|
-
display: none;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.nav-badge {
|
|
163
|
-
font-family: var(--mono);
|
|
164
|
-
font-size: 10.5px;
|
|
165
|
-
background: var(--border-soft);
|
|
166
|
-
color: var(--ink-muted);
|
|
167
|
-
padding: 1px 6px;
|
|
168
|
-
border-radius: 4px;
|
|
169
|
-
font-variant-numeric: tabular-nums;
|
|
170
|
-
opacity: 1;
|
|
171
|
-
transition: opacity .15s ease;
|
|
172
|
-
}
|
|
173
|
-
.sidebar[data-collapsed="true"] .nav-badge { opacity: 0; }
|
|
174
|
-
.nav-item[aria-selected="true"] .nav-badge {
|
|
175
|
-
background: var(--bg-elev);
|
|
176
|
-
color: var(--ink-mid);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.sidebar-divider {
|
|
180
|
-
margin: var(--s-3) var(--s-2);
|
|
181
|
-
border-top: 1px solid var(--border);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.sidebar-utility {
|
|
185
|
-
display: flex;
|
|
186
|
-
flex-direction: column;
|
|
187
|
-
gap: 2px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.sidebar-foot {
|
|
191
|
-
margin-top: auto;
|
|
192
|
-
padding-top: 2px;
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-direction: row;
|
|
195
|
-
justify-content: flex-end;
|
|
196
|
-
align-items: center;
|
|
197
|
-
gap: 2px;
|
|
198
|
-
}
|
|
199
|
-
/* Brand block at the bottom of the sidebar. Clickable: navigates to
|
|
200
|
-
About. Matches nav-item height so collapsed sidebar reads as a
|
|
201
|
-
uniform column of equally-sized icons. */
|
|
202
|
-
.sidebar-brand-button {
|
|
203
|
-
appearance: none;
|
|
204
|
-
background: transparent;
|
|
205
|
-
border: 0;
|
|
206
|
-
display: flex;
|
|
207
|
-
align-items: center;
|
|
208
|
-
gap: 8px;
|
|
209
|
-
width: 100%;
|
|
210
|
-
padding: 0 var(--s-2);
|
|
211
|
-
min-height: 28px;
|
|
212
|
-
height: 28px;
|
|
213
|
-
cursor: pointer;
|
|
214
|
-
border-radius: 4px;
|
|
215
|
-
text-align: left;
|
|
216
|
-
font: inherit;
|
|
217
|
-
color: var(--ink);
|
|
218
|
-
transition: background .12s;
|
|
219
|
-
}
|
|
220
|
-
.sidebar-brand-button[aria-selected="true"],
|
|
221
|
-
.sidebar-brand-button[aria-selected="true"]:hover {
|
|
222
|
-
background: var(--sidebar-active);
|
|
223
|
-
font-weight: 500;
|
|
224
|
-
}
|
|
225
|
-
.sidebar-brand-button:hover { background: var(--sidebar-hover); }
|
|
226
|
-
.sidebar-foot .brand-mark {
|
|
227
|
-
width: 14px;
|
|
228
|
-
height: 14px;
|
|
229
|
-
flex: 0 0 14px;
|
|
230
|
-
display: inline-flex;
|
|
231
|
-
align-items: center;
|
|
232
|
-
justify-content: center;
|
|
233
|
-
/* Lock the SVG box exactly to 14×14 so flex centering doesn't fight
|
|
234
|
-
the SVG's intrinsic dimensions; otherwise the mark drifts a couple
|
|
235
|
-
pixels low because <svg width=32 height=32> wants more vertical
|
|
236
|
-
space than the 14px row gives it. */
|
|
237
|
-
line-height: 0;
|
|
238
|
-
}
|
|
239
|
-
.sidebar-foot .brand-mark svg {
|
|
240
|
-
width: 14px;
|
|
241
|
-
height: 14px;
|
|
242
|
-
display: block;
|
|
243
|
-
}
|
|
244
|
-
.sidebar-foot .brand-name {
|
|
245
|
-
font-size: 13px;
|
|
246
|
-
font-weight: 400;
|
|
247
|
-
line-height: 1;
|
|
248
|
-
}
|
|
249
|
-
.brand-version {
|
|
250
|
-
margin-left: auto;
|
|
251
|
-
font-family: var(--mono);
|
|
252
|
-
font-size: 10px;
|
|
253
|
-
color: var(--ink-muted);
|
|
254
|
-
font-variant-numeric: tabular-nums;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Top strip · single row, currently hosts only the collapse toggle on
|
|
258
|
-
the right. Matches the page-title-bar height so the topmost row of
|
|
259
|
-
the window reads as one unified band. */
|
|
260
|
-
.sidebar-top {
|
|
261
|
-
display: flex;
|
|
262
|
-
align-items: center;
|
|
263
|
-
padding: 0;
|
|
264
|
-
min-height: 40px;
|
|
265
|
-
margin-bottom: var(--s-2);
|
|
266
|
-
}
|
|
267
|
-
.collapse-toggle {
|
|
268
|
-
appearance: none;
|
|
269
|
-
background: transparent;
|
|
270
|
-
border: 0;
|
|
271
|
-
display: inline-flex;
|
|
272
|
-
align-items: center;
|
|
273
|
-
justify-content: center;
|
|
274
|
-
width: 40px;
|
|
275
|
-
height: 40px;
|
|
276
|
-
padding: 0;
|
|
277
|
-
border-radius: 4px;
|
|
278
|
-
cursor: pointer;
|
|
279
|
-
color: var(--ink);
|
|
280
|
-
transition: background .12s;
|
|
281
|
-
min-height: 0;
|
|
282
|
-
flex: 0 0 40px;
|
|
283
|
-
}
|
|
284
|
-
.collapse-toggle:hover { background: var(--sidebar-hover); }
|
|
285
|
-
.collapse-toggle .nav-icon {
|
|
286
|
-
width: 14px;
|
|
287
|
-
height: 14px;
|
|
288
|
-
flex: 0 0 14px;
|
|
289
|
-
}
|
|
290
|
-
.sidebar[data-collapsed="true"] .sidebar-top {
|
|
291
|
-
justify-content: center;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/* chevron flips when the sidebar is collapsed; the rest is util-item styling */
|
|
295
|
-
.collapse-toggle .nav-icon {
|
|
296
|
-
transition: transform .25s cubic-bezier(.4, 0, .2, 1);
|
|
297
|
-
}
|
|
298
|
-
.sidebar[data-collapsed="true"] .collapse-toggle .nav-icon {
|
|
299
|
-
transform: rotate(180deg);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/* Drag-to-resize handle. Sits absolutely against the sidebar's right
|
|
303
|
-
border so the cursor target spans the full height. 6px wide hit area
|
|
304
|
-
centered on the visible 1px border — easy to grab without bumping
|
|
305
|
-
into adjacent layout. */
|
|
306
|
-
.sidebar-resize-handle {
|
|
307
|
-
position: absolute;
|
|
308
|
-
top: 0;
|
|
309
|
-
right: -3px;
|
|
310
|
-
width: 6px;
|
|
311
|
-
height: 100%;
|
|
312
|
-
cursor: col-resize;
|
|
313
|
-
z-index: 5;
|
|
314
|
-
touch-action: none;
|
|
315
|
-
/* Subtle hover indicator: deepens the border-right color on hover so the
|
|
316
|
-
user knows the edge is interactive. */
|
|
317
|
-
background: transparent;
|
|
318
|
-
transition: background .12s ease;
|
|
319
|
-
}
|
|
320
|
-
.sidebar-resize-handle:hover,
|
|
321
|
-
body.is-resizing-sidebar .sidebar-resize-handle {
|
|
322
|
-
/* Wash the hit area in the accent color so the user knows the edge is
|
|
323
|
-
live and so the theme follows their accent choice. */
|
|
324
|
-
background: var(--accent-soft);
|
|
325
|
-
}
|
|
326
|
-
/* While dragging, freeze global cursor + suppress text selection so the
|
|
327
|
-
whole page tracks resize cleanly even if pointer leaves the handle. */
|
|
328
|
-
body.is-resizing-sidebar {
|
|
329
|
-
cursor: col-resize !important;
|
|
330
|
-
user-select: none;
|
|
331
|
-
}
|
|
332
|
-
body.is-resizing-sidebar * {
|
|
333
|
-
cursor: col-resize !important;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/* === v1.0 codex-style sidebar tree === */
|
|
337
|
-
|
|
338
|
-
/* Compact top nav: smaller height + smaller font, so the folder tree
|
|
339
|
-
below dominates. */
|
|
340
|
-
.sidebar-nav.compact .nav-item {
|
|
341
|
-
font-size: 13px;
|
|
342
|
-
padding: 4px 10px;
|
|
343
|
-
min-height: 30px;
|
|
344
|
-
gap: 10px;
|
|
345
|
-
border-radius: 6px;
|
|
346
|
-
position: relative;
|
|
347
|
-
letter-spacing: -0.005em;
|
|
348
|
-
transition: background .14s ease, color .14s ease;
|
|
349
|
-
}
|
|
350
|
-
.sidebar-nav.compact .nav-item:hover { background: var(--sidebar-hover); }
|
|
351
|
-
.sidebar-nav.compact .nav-icon {
|
|
352
|
-
width: 14px;
|
|
353
|
-
height: 14px;
|
|
354
|
-
flex: 0 0 14px;
|
|
355
|
-
}
|
|
356
|
-
.sidebar[data-collapsed="true"] .sidebar-nav.compact .nav-item {
|
|
357
|
-
justify-content: center;
|
|
358
|
-
gap: 0;
|
|
359
|
-
padding: 8px 0;
|
|
360
|
-
}
|
|
361
|
-
.sidebar-nav.compact .nav-item.is-active {
|
|
362
|
-
background: var(--sidebar-active);
|
|
363
|
-
color: var(--ink);
|
|
364
|
-
font-weight: 500;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/* Tree section header. Looks like codex: uppercase label, small +
|
|
368
|
-
button on hover. */
|
|
369
|
-
.tree {
|
|
370
|
-
margin-top: var(--s-3);
|
|
371
|
-
display: flex;
|
|
372
|
-
flex-direction: column;
|
|
373
|
-
gap: 2px;
|
|
374
|
-
/* Only vertical scroll when the tree is taller than the rail.
|
|
375
|
-
overflow-y alone leaves overflow-x at the default `auto`, which
|
|
376
|
-
gives us an unwanted horizontal scrollbar whenever a session
|
|
377
|
-
title (or its hover row padding) brushes the viewport edge.
|
|
378
|
-
overflow-x:hidden truncates with ellipsis instead — labels
|
|
379
|
-
already do `text-overflow: ellipsis`. */
|
|
380
|
-
overflow-y: auto;
|
|
381
|
-
overflow-x: hidden;
|
|
382
|
-
flex: 1;
|
|
383
|
-
min-height: 0;
|
|
384
|
-
padding-bottom: var(--s-3);
|
|
385
|
-
}
|
|
386
|
-
.tree-head {
|
|
387
|
-
display: flex;
|
|
388
|
-
justify-content: space-between;
|
|
389
|
-
align-items: center;
|
|
390
|
-
padding: 0 10px;
|
|
391
|
-
min-height: 24px;
|
|
392
|
-
height: 24px;
|
|
393
|
-
font-size: 12px;
|
|
394
|
-
font-weight: 500;
|
|
395
|
-
letter-spacing: 0;
|
|
396
|
-
color: var(--ink-mid);
|
|
397
|
-
}
|
|
398
|
-
.tree-head-action {
|
|
399
|
-
appearance: none;
|
|
400
|
-
background: transparent;
|
|
401
|
-
border: 0;
|
|
402
|
-
padding: 2px 4px;
|
|
403
|
-
border-radius: 4px;
|
|
404
|
-
cursor: pointer;
|
|
405
|
-
color: var(--ink);
|
|
406
|
-
display: inline-flex;
|
|
407
|
-
align-items: center;
|
|
408
|
-
opacity: 0.6;
|
|
409
|
-
transition: opacity .12s, background .12s;
|
|
410
|
-
}
|
|
411
|
-
.tree-head-action:hover { opacity: 1; background: var(--sidebar-hover); }
|
|
412
|
-
.tree-head-action svg { width: 14px; height: 14px; }
|
|
413
|
-
|
|
414
|
-
/* Folder grouping. Chevron rotates on expand. */
|
|
415
|
-
.tree-folder {
|
|
416
|
-
display: flex;
|
|
417
|
-
flex-direction: column;
|
|
418
|
-
}
|
|
419
|
-
.tree-folder[data-dnd-over="true"] > .tree-folder-head {
|
|
420
|
-
box-shadow: 0 -2px 0 var(--accent) inset;
|
|
421
|
-
}
|
|
422
|
-
.tree-folder-head[draggable="true"] {
|
|
423
|
-
cursor: grab;
|
|
424
|
-
}
|
|
425
|
-
.tree-folder-head[draggable="true"]:active {
|
|
426
|
-
cursor: grabbing;
|
|
427
|
-
}
|
|
428
|
-
.tree-folder-head {
|
|
429
|
-
appearance: none;
|
|
430
|
-
background: transparent;
|
|
431
|
-
border: 0;
|
|
432
|
-
width: 100%;
|
|
433
|
-
text-align: left;
|
|
434
|
-
padding: 4px 8px;
|
|
435
|
-
display: flex;
|
|
436
|
-
align-items: center;
|
|
437
|
-
gap: 8px;
|
|
438
|
-
font-size: 13px;
|
|
439
|
-
font-weight: 400;
|
|
440
|
-
color: var(--ink);
|
|
441
|
-
cursor: pointer;
|
|
442
|
-
border-radius: 4px;
|
|
443
|
-
font-family: var(--body);
|
|
444
|
-
min-height: 28px;
|
|
445
|
-
}
|
|
446
|
-
.tree-folder-head:hover { background: var(--sidebar-hover); }
|
|
447
|
-
.tree-folder-icon {
|
|
448
|
-
display: inline-flex;
|
|
449
|
-
width: 14px;
|
|
450
|
-
height: 14px;
|
|
451
|
-
flex: 0 0 14px;
|
|
452
|
-
color: var(--ink);
|
|
453
|
-
}
|
|
454
|
-
.tree-folder-icon svg { width: 100%; height: 100%; }
|
|
455
|
-
.tree-folder-head.is-open .tree-folder-icon { color: var(--ink); }
|
|
456
|
-
.tree-folder-name {
|
|
457
|
-
flex: 1;
|
|
458
|
-
white-space: nowrap;
|
|
459
|
-
overflow: hidden;
|
|
460
|
-
text-overflow: ellipsis;
|
|
461
|
-
}
|
|
462
|
-
.tree-folder-count {
|
|
463
|
-
font-size: 13px;
|
|
464
|
-
color: var(--ink);
|
|
465
|
-
font-variant-numeric: tabular-nums;
|
|
466
|
-
padding: 0 5px;
|
|
467
|
-
background: transparent;
|
|
468
|
-
border-radius: 999px;
|
|
469
|
-
opacity: 0.6;
|
|
470
|
-
}
|
|
471
|
-
.tree-folder-actions {
|
|
472
|
-
display: none;
|
|
473
|
-
gap: 2px;
|
|
474
|
-
}
|
|
475
|
-
.tree-folder-head:hover .tree-folder-actions { display: inline-flex; }
|
|
476
|
-
.tree-folder-action {
|
|
477
|
-
appearance: none;
|
|
478
|
-
background: transparent;
|
|
479
|
-
border: 0;
|
|
480
|
-
display: inline-flex;
|
|
481
|
-
align-items: center;
|
|
482
|
-
justify-content: center;
|
|
483
|
-
width: 18px;
|
|
484
|
-
height: 18px;
|
|
485
|
-
padding: 0;
|
|
486
|
-
font-size: 13px;
|
|
487
|
-
color: var(--ink);
|
|
488
|
-
cursor: pointer;
|
|
489
|
-
opacity: 0.6;
|
|
490
|
-
border-radius: 3px;
|
|
491
|
-
}
|
|
492
|
-
.tree-folder-action:hover { opacity: 1; background: var(--sidebar-hover); }
|
|
493
|
-
.tree-folder-action svg { width: 12px; height: 12px; }
|
|
494
|
-
|
|
495
|
-
.tree-folder-body {
|
|
496
|
-
display: flex;
|
|
497
|
-
flex-direction: column;
|
|
498
|
-
/* No left padding here — the session rows themselves get padding-left
|
|
499
|
-
that lines their label up under the folder name. Keeping the bg
|
|
500
|
-
extend across the full sidebar width when selected/hovered. */
|
|
501
|
-
padding-left: 0;
|
|
502
|
-
}
|
|
503
|
-
.tree-empty {
|
|
504
|
-
font-size: 13px;
|
|
505
|
-
color: var(--ink);
|
|
506
|
-
padding: 3px 8px;
|
|
507
|
-
font-style: italic;
|
|
508
|
-
opacity: 0.5;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
/* Session rows. Codex uses a colored dot + truncated label + tiny
|
|
512
|
-
timestamp on the right. */
|
|
513
|
-
.tree-session {
|
|
514
|
-
display: flex;
|
|
515
|
-
align-items: center;
|
|
516
|
-
gap: 8px;
|
|
517
|
-
/* Match the folder head: 8px left padding, then a 14px icon column
|
|
518
|
-
(the colored dot lives here, sized 8px and centered), then 8px gap
|
|
519
|
-
before the label — lines the label up exactly under the folder name. */
|
|
520
|
-
padding: 4px 8px;
|
|
521
|
-
border-radius: 4px;
|
|
522
|
-
cursor: pointer;
|
|
523
|
-
font-size: 13px;
|
|
524
|
-
color: var(--ink);
|
|
525
|
-
font-family: var(--body);
|
|
526
|
-
user-select: none;
|
|
527
|
-
transition: background .1s;
|
|
528
|
-
min-height: 28px;
|
|
529
|
-
}
|
|
530
|
-
.tree-session:hover { background: var(--sidebar-hover); }
|
|
531
|
-
.tree-session.is-active {
|
|
532
|
-
background: var(--sidebar-active);
|
|
533
|
-
font-weight: 500;
|
|
534
|
-
}
|
|
535
|
-
.tree-dot {
|
|
536
|
-
width: 14px;
|
|
537
|
-
height: 14px;
|
|
538
|
-
flex: 0 0 14px;
|
|
539
|
-
display: inline-flex;
|
|
540
|
-
align-items: center;
|
|
541
|
-
justify-content: center;
|
|
542
|
-
position: relative;
|
|
543
|
-
}
|
|
544
|
-
.tree-dot::after {
|
|
545
|
-
content: "";
|
|
546
|
-
width: 7px;
|
|
547
|
-
height: 7px;
|
|
548
|
-
border-radius: 50%;
|
|
549
|
-
background: var(--ink-faint);
|
|
550
|
-
transition: background .15s ease;
|
|
551
|
-
}
|
|
552
|
-
.tree-session.is-running .tree-dot::after {
|
|
553
|
-
background: var(--green);
|
|
554
|
-
box-shadow: 0 0 0 3px rgba(74, 138, 74, 0.18);
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
50
|
|
564
|
-
|
|
565
|
-
.
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
.
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
}
|
|
593
|
-
.tree-session-action
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
1
|
+
/* Left collapsible sidebar nav · brand mark · util items · collapse toggle */
|
|
2
|
+
|
|
3
|
+
.sidebar {
|
|
4
|
+
position: sticky;
|
|
5
|
+
top: 0;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
background: var(--ui-bg);
|
|
8
|
+
border-right: 1px solid var(--ui-border);
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
padding: 0 var(--s-2);
|
|
12
|
+
overflow: visible;
|
|
13
|
+
transition: padding .25s cubic-bezier(.4, 0, .2, 1);
|
|
14
|
+
}
|
|
15
|
+
.sidebar[data-collapsed="true"] {
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
/* Collapsed: every clickable row becomes a 28x28 square, centered in
|
|
19
|
+
the narrow sidebar column. Width auto + margin auto so the square
|
|
20
|
+
sits centered regardless of what padding the parent has. */
|
|
21
|
+
.sidebar[data-collapsed="true"] .nav-item,
|
|
22
|
+
.sidebar[data-collapsed="true"] .util-item,
|
|
23
|
+
.sidebar[data-collapsed="true"] .sidebar-brand-button,
|
|
24
|
+
.sidebar[data-collapsed="true"] .tree-folder-head,
|
|
25
|
+
.sidebar[data-collapsed="true"] .tree-session {
|
|
26
|
+
width: 28px;
|
|
27
|
+
height: 28px;
|
|
28
|
+
min-height: 28px;
|
|
29
|
+
padding: 0;
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
gap: 0;
|
|
33
|
+
}
|
|
34
|
+
.sidebar[data-collapsed="true"] .sidebar-top {
|
|
35
|
+
padding: 0;
|
|
36
|
+
min-height: 40px;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
.sidebar[data-collapsed="true"] .sidebar-top .collapse-toggle {
|
|
40
|
+
width: 40px;
|
|
41
|
+
height: 40px;
|
|
42
|
+
min-height: 40px;
|
|
43
|
+
margin: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sidebar-brand {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: var(--s-2);
|
|
50
|
+
padding: 0 var(--s-2);
|
|
51
|
+
min-height: 28px;
|
|
52
|
+
height: 28px;
|
|
53
|
+
}
|
|
54
|
+
.brand-mark {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
width: 20px;
|
|
59
|
+
height: 20px;
|
|
60
|
+
flex: 0 0 20px;
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: var(--accent);
|
|
63
|
+
}
|
|
64
|
+
.brand-mark svg { display: block; width: 20px; height: 20px; }
|
|
65
|
+
.brand-name {
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
letter-spacing: -0.02em;
|
|
69
|
+
color: var(--ink);
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
opacity: 1;
|
|
72
|
+
line-height: 1;
|
|
73
|
+
transition: opacity .15s ease;
|
|
74
|
+
}
|
|
75
|
+
.brand-dot { color: var(--accent); }
|
|
76
|
+
.sidebar[data-collapsed="true"] .brand-name { display: none; }
|
|
77
|
+
.sidebar[data-collapsed="true"] .brand-version { display: none; }
|
|
78
|
+
.sidebar[data-collapsed="true"] .sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
|
|
79
|
+
|
|
80
|
+
.sidebar-nav {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: 2px;
|
|
84
|
+
flex: 0 0 auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nav-item, .util-item {
|
|
88
|
+
appearance: none;
|
|
89
|
+
background: transparent;
|
|
90
|
+
border: 0;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: var(--s-3);
|
|
94
|
+
width: 100%;
|
|
95
|
+
padding: 0 12px;
|
|
96
|
+
min-height: 42px;
|
|
97
|
+
border-radius: var(--r-sm);
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
color: var(--ink);
|
|
100
|
+
font-family: var(--body);
|
|
101
|
+
font-size: 13px;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
text-align: left;
|
|
104
|
+
transition: background .12s ease, color .12s ease;
|
|
105
|
+
position: relative;
|
|
106
|
+
}
|
|
107
|
+
.nav-item:hover, .util-item:hover {
|
|
108
|
+
background: var(--sidebar-hover);
|
|
109
|
+
}
|
|
110
|
+
.nav-item[aria-selected="true"] {
|
|
111
|
+
background: var(--sidebar-active);
|
|
112
|
+
color: var(--ink);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Unsaved-changes dot next to nav label */
|
|
116
|
+
.nav-item.has-changes::after {
|
|
117
|
+
content: "";
|
|
118
|
+
position: absolute;
|
|
119
|
+
right: 10px;
|
|
120
|
+
top: 50%;
|
|
121
|
+
transform: translateY(-50%);
|
|
122
|
+
width: 7px;
|
|
123
|
+
height: 7px;
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
background: var(--ink);
|
|
126
|
+
box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.30);
|
|
127
|
+
animation: dirty-pulse 2s ease-in-out infinite;
|
|
128
|
+
}
|
|
129
|
+
@keyframes dirty-pulse {
|
|
130
|
+
0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.22); }
|
|
131
|
+
50% { box-shadow: 0 0 0 4px rgba(26, 24, 21, 0); }
|
|
132
|
+
}
|
|
133
|
+
.sidebar[data-collapsed="true"] .nav-item.has-changes::after {
|
|
134
|
+
right: auto;
|
|
135
|
+
top: 6px;
|
|
136
|
+
left: 28px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.nav-icon {
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
width: 20px;
|
|
142
|
+
height: 20px;
|
|
143
|
+
flex: 0 0 20px;
|
|
144
|
+
color: currentColor;
|
|
145
|
+
}
|
|
146
|
+
.nav-icon svg { width: 100%; height: 100%; }
|
|
147
|
+
.nav-label {
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
opacity: 1;
|
|
150
|
+
transition: opacity .15s ease;
|
|
151
|
+
flex: 1;
|
|
152
|
+
}
|
|
153
|
+
.sidebar[data-collapsed="true"] .nav-label { opacity: 0; pointer-events: none; }
|
|
154
|
+
/* Collapsed sidebar (60px wide): hide the label entirely so the icon
|
|
155
|
+
centers in the narrow column instead of being pushed off-screen by
|
|
156
|
+
the still-laid-out (but invisible) label text. Same for the badge. */
|
|
157
|
+
.sidebar[data-collapsed="true"] .nav-label,
|
|
158
|
+
.sidebar[data-collapsed="true"] .nav-badge {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.nav-badge {
|
|
163
|
+
font-family: var(--mono);
|
|
164
|
+
font-size: 10.5px;
|
|
165
|
+
background: var(--border-soft);
|
|
166
|
+
color: var(--ink-muted);
|
|
167
|
+
padding: 1px 6px;
|
|
168
|
+
border-radius: 4px;
|
|
169
|
+
font-variant-numeric: tabular-nums;
|
|
170
|
+
opacity: 1;
|
|
171
|
+
transition: opacity .15s ease;
|
|
172
|
+
}
|
|
173
|
+
.sidebar[data-collapsed="true"] .nav-badge { opacity: 0; }
|
|
174
|
+
.nav-item[aria-selected="true"] .nav-badge {
|
|
175
|
+
background: var(--bg-elev);
|
|
176
|
+
color: var(--ink-mid);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.sidebar-divider {
|
|
180
|
+
margin: var(--s-3) var(--s-2);
|
|
181
|
+
border-top: 1px solid var(--border);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.sidebar-utility {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
gap: 2px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.sidebar-foot {
|
|
191
|
+
margin-top: auto;
|
|
192
|
+
padding-top: 2px;
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: row;
|
|
195
|
+
justify-content: flex-end;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 2px;
|
|
198
|
+
}
|
|
199
|
+
/* Brand block at the bottom of the sidebar. Clickable: navigates to
|
|
200
|
+
About. Matches nav-item height so collapsed sidebar reads as a
|
|
201
|
+
uniform column of equally-sized icons. */
|
|
202
|
+
.sidebar-brand-button {
|
|
203
|
+
appearance: none;
|
|
204
|
+
background: transparent;
|
|
205
|
+
border: 0;
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: 8px;
|
|
209
|
+
width: 100%;
|
|
210
|
+
padding: 0 var(--s-2);
|
|
211
|
+
min-height: 28px;
|
|
212
|
+
height: 28px;
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
border-radius: 4px;
|
|
215
|
+
text-align: left;
|
|
216
|
+
font: inherit;
|
|
217
|
+
color: var(--ink);
|
|
218
|
+
transition: background .12s;
|
|
219
|
+
}
|
|
220
|
+
.sidebar-brand-button[aria-selected="true"],
|
|
221
|
+
.sidebar-brand-button[aria-selected="true"]:hover {
|
|
222
|
+
background: var(--sidebar-active);
|
|
223
|
+
font-weight: 500;
|
|
224
|
+
}
|
|
225
|
+
.sidebar-brand-button:hover { background: var(--sidebar-hover); }
|
|
226
|
+
.sidebar-foot .brand-mark {
|
|
227
|
+
width: 14px;
|
|
228
|
+
height: 14px;
|
|
229
|
+
flex: 0 0 14px;
|
|
230
|
+
display: inline-flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
/* Lock the SVG box exactly to 14×14 so flex centering doesn't fight
|
|
234
|
+
the SVG's intrinsic dimensions; otherwise the mark drifts a couple
|
|
235
|
+
pixels low because <svg width=32 height=32> wants more vertical
|
|
236
|
+
space than the 14px row gives it. */
|
|
237
|
+
line-height: 0;
|
|
238
|
+
}
|
|
239
|
+
.sidebar-foot .brand-mark svg {
|
|
240
|
+
width: 14px;
|
|
241
|
+
height: 14px;
|
|
242
|
+
display: block;
|
|
243
|
+
}
|
|
244
|
+
.sidebar-foot .brand-name {
|
|
245
|
+
font-size: 13px;
|
|
246
|
+
font-weight: 400;
|
|
247
|
+
line-height: 1;
|
|
248
|
+
}
|
|
249
|
+
.brand-version {
|
|
250
|
+
margin-left: auto;
|
|
251
|
+
font-family: var(--mono);
|
|
252
|
+
font-size: 10px;
|
|
253
|
+
color: var(--ink-muted);
|
|
254
|
+
font-variant-numeric: tabular-nums;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Top strip · single row, currently hosts only the collapse toggle on
|
|
258
|
+
the right. Matches the page-title-bar height so the topmost row of
|
|
259
|
+
the window reads as one unified band. */
|
|
260
|
+
.sidebar-top {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
padding: 0;
|
|
264
|
+
min-height: 40px;
|
|
265
|
+
margin-bottom: var(--s-2);
|
|
266
|
+
}
|
|
267
|
+
.collapse-toggle {
|
|
268
|
+
appearance: none;
|
|
269
|
+
background: transparent;
|
|
270
|
+
border: 0;
|
|
271
|
+
display: inline-flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: center;
|
|
274
|
+
width: 40px;
|
|
275
|
+
height: 40px;
|
|
276
|
+
padding: 0;
|
|
277
|
+
border-radius: 4px;
|
|
278
|
+
cursor: pointer;
|
|
279
|
+
color: var(--ink);
|
|
280
|
+
transition: background .12s;
|
|
281
|
+
min-height: 0;
|
|
282
|
+
flex: 0 0 40px;
|
|
283
|
+
}
|
|
284
|
+
.collapse-toggle:hover { background: var(--sidebar-hover); }
|
|
285
|
+
.collapse-toggle .nav-icon {
|
|
286
|
+
width: 14px;
|
|
287
|
+
height: 14px;
|
|
288
|
+
flex: 0 0 14px;
|
|
289
|
+
}
|
|
290
|
+
.sidebar[data-collapsed="true"] .sidebar-top {
|
|
291
|
+
justify-content: center;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* chevron flips when the sidebar is collapsed; the rest is util-item styling */
|
|
295
|
+
.collapse-toggle .nav-icon {
|
|
296
|
+
transition: transform .25s cubic-bezier(.4, 0, .2, 1);
|
|
297
|
+
}
|
|
298
|
+
.sidebar[data-collapsed="true"] .collapse-toggle .nav-icon {
|
|
299
|
+
transform: rotate(180deg);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Drag-to-resize handle. Sits absolutely against the sidebar's right
|
|
303
|
+
border so the cursor target spans the full height. 6px wide hit area
|
|
304
|
+
centered on the visible 1px border — easy to grab without bumping
|
|
305
|
+
into adjacent layout. */
|
|
306
|
+
.sidebar-resize-handle {
|
|
307
|
+
position: absolute;
|
|
308
|
+
top: 0;
|
|
309
|
+
right: -3px;
|
|
310
|
+
width: 6px;
|
|
311
|
+
height: 100%;
|
|
312
|
+
cursor: col-resize;
|
|
313
|
+
z-index: 5;
|
|
314
|
+
touch-action: none;
|
|
315
|
+
/* Subtle hover indicator: deepens the border-right color on hover so the
|
|
316
|
+
user knows the edge is interactive. */
|
|
317
|
+
background: transparent;
|
|
318
|
+
transition: background .12s ease;
|
|
319
|
+
}
|
|
320
|
+
.sidebar-resize-handle:hover,
|
|
321
|
+
body.is-resizing-sidebar .sidebar-resize-handle {
|
|
322
|
+
/* Wash the hit area in the accent color so the user knows the edge is
|
|
323
|
+
live and so the theme follows their accent choice. */
|
|
324
|
+
background: var(--accent-soft);
|
|
325
|
+
}
|
|
326
|
+
/* While dragging, freeze global cursor + suppress text selection so the
|
|
327
|
+
whole page tracks resize cleanly even if pointer leaves the handle. */
|
|
328
|
+
body.is-resizing-sidebar {
|
|
329
|
+
cursor: col-resize !important;
|
|
330
|
+
user-select: none;
|
|
331
|
+
}
|
|
332
|
+
body.is-resizing-sidebar * {
|
|
333
|
+
cursor: col-resize !important;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* === v1.0 codex-style sidebar tree === */
|
|
337
|
+
|
|
338
|
+
/* Compact top nav: smaller height + smaller font, so the folder tree
|
|
339
|
+
below dominates. */
|
|
340
|
+
.sidebar-nav.compact .nav-item {
|
|
341
|
+
font-size: 13px;
|
|
342
|
+
padding: 4px 10px;
|
|
343
|
+
min-height: 30px;
|
|
344
|
+
gap: 10px;
|
|
345
|
+
border-radius: 6px;
|
|
346
|
+
position: relative;
|
|
347
|
+
letter-spacing: -0.005em;
|
|
348
|
+
transition: background .14s ease, color .14s ease;
|
|
349
|
+
}
|
|
350
|
+
.sidebar-nav.compact .nav-item:hover { background: var(--sidebar-hover); }
|
|
351
|
+
.sidebar-nav.compact .nav-icon {
|
|
352
|
+
width: 14px;
|
|
353
|
+
height: 14px;
|
|
354
|
+
flex: 0 0 14px;
|
|
355
|
+
}
|
|
356
|
+
.sidebar[data-collapsed="true"] .sidebar-nav.compact .nav-item {
|
|
357
|
+
justify-content: center;
|
|
358
|
+
gap: 0;
|
|
359
|
+
padding: 8px 0;
|
|
360
|
+
}
|
|
361
|
+
.sidebar-nav.compact .nav-item.is-active {
|
|
362
|
+
background: var(--sidebar-active);
|
|
363
|
+
color: var(--ink);
|
|
364
|
+
font-weight: 500;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* Tree section header. Looks like codex: uppercase label, small +
|
|
368
|
+
button on hover. */
|
|
369
|
+
.tree {
|
|
370
|
+
margin-top: var(--s-3);
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
gap: 2px;
|
|
374
|
+
/* Only vertical scroll when the tree is taller than the rail.
|
|
375
|
+
overflow-y alone leaves overflow-x at the default `auto`, which
|
|
376
|
+
gives us an unwanted horizontal scrollbar whenever a session
|
|
377
|
+
title (or its hover row padding) brushes the viewport edge.
|
|
378
|
+
overflow-x:hidden truncates with ellipsis instead — labels
|
|
379
|
+
already do `text-overflow: ellipsis`. */
|
|
380
|
+
overflow-y: auto;
|
|
381
|
+
overflow-x: hidden;
|
|
382
|
+
flex: 1;
|
|
383
|
+
min-height: 0;
|
|
384
|
+
padding-bottom: var(--s-3);
|
|
385
|
+
}
|
|
386
|
+
.tree-head {
|
|
387
|
+
display: flex;
|
|
388
|
+
justify-content: space-between;
|
|
389
|
+
align-items: center;
|
|
390
|
+
padding: 0 10px;
|
|
391
|
+
min-height: 24px;
|
|
392
|
+
height: 24px;
|
|
393
|
+
font-size: 12px;
|
|
394
|
+
font-weight: 500;
|
|
395
|
+
letter-spacing: 0;
|
|
396
|
+
color: var(--ink-mid);
|
|
397
|
+
}
|
|
398
|
+
.tree-head-action {
|
|
399
|
+
appearance: none;
|
|
400
|
+
background: transparent;
|
|
401
|
+
border: 0;
|
|
402
|
+
padding: 2px 4px;
|
|
403
|
+
border-radius: 4px;
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
color: var(--ink);
|
|
406
|
+
display: inline-flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
opacity: 0.6;
|
|
409
|
+
transition: opacity .12s, background .12s;
|
|
410
|
+
}
|
|
411
|
+
.tree-head-action:hover { opacity: 1; background: var(--sidebar-hover); }
|
|
412
|
+
.tree-head-action svg { width: 14px; height: 14px; }
|
|
413
|
+
|
|
414
|
+
/* Folder grouping. Chevron rotates on expand. */
|
|
415
|
+
.tree-folder {
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: column;
|
|
418
|
+
}
|
|
419
|
+
.tree-folder[data-dnd-over="true"] > .tree-folder-head {
|
|
420
|
+
box-shadow: 0 -2px 0 var(--accent) inset;
|
|
421
|
+
}
|
|
422
|
+
.tree-folder-head[draggable="true"] {
|
|
423
|
+
cursor: grab;
|
|
424
|
+
}
|
|
425
|
+
.tree-folder-head[draggable="true"]:active {
|
|
426
|
+
cursor: grabbing;
|
|
427
|
+
}
|
|
428
|
+
.tree-folder-head {
|
|
429
|
+
appearance: none;
|
|
430
|
+
background: transparent;
|
|
431
|
+
border: 0;
|
|
432
|
+
width: 100%;
|
|
433
|
+
text-align: left;
|
|
434
|
+
padding: 4px 8px;
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
font-size: 13px;
|
|
439
|
+
font-weight: 400;
|
|
440
|
+
color: var(--ink);
|
|
441
|
+
cursor: pointer;
|
|
442
|
+
border-radius: 4px;
|
|
443
|
+
font-family: var(--body);
|
|
444
|
+
min-height: 28px;
|
|
445
|
+
}
|
|
446
|
+
.tree-folder-head:hover { background: var(--sidebar-hover); }
|
|
447
|
+
.tree-folder-icon {
|
|
448
|
+
display: inline-flex;
|
|
449
|
+
width: 14px;
|
|
450
|
+
height: 14px;
|
|
451
|
+
flex: 0 0 14px;
|
|
452
|
+
color: var(--ink);
|
|
453
|
+
}
|
|
454
|
+
.tree-folder-icon svg { width: 100%; height: 100%; }
|
|
455
|
+
.tree-folder-head.is-open .tree-folder-icon { color: var(--ink); }
|
|
456
|
+
.tree-folder-name {
|
|
457
|
+
flex: 1;
|
|
458
|
+
white-space: nowrap;
|
|
459
|
+
overflow: hidden;
|
|
460
|
+
text-overflow: ellipsis;
|
|
461
|
+
}
|
|
462
|
+
.tree-folder-count {
|
|
463
|
+
font-size: 13px;
|
|
464
|
+
color: var(--ink);
|
|
465
|
+
font-variant-numeric: tabular-nums;
|
|
466
|
+
padding: 0 5px;
|
|
467
|
+
background: transparent;
|
|
468
|
+
border-radius: 999px;
|
|
469
|
+
opacity: 0.6;
|
|
470
|
+
}
|
|
471
|
+
.tree-folder-actions {
|
|
472
|
+
display: none;
|
|
473
|
+
gap: 2px;
|
|
474
|
+
}
|
|
475
|
+
.tree-folder-head:hover .tree-folder-actions { display: inline-flex; }
|
|
476
|
+
.tree-folder-action {
|
|
477
|
+
appearance: none;
|
|
478
|
+
background: transparent;
|
|
479
|
+
border: 0;
|
|
480
|
+
display: inline-flex;
|
|
481
|
+
align-items: center;
|
|
482
|
+
justify-content: center;
|
|
483
|
+
width: 18px;
|
|
484
|
+
height: 18px;
|
|
485
|
+
padding: 0;
|
|
486
|
+
font-size: 13px;
|
|
487
|
+
color: var(--ink);
|
|
488
|
+
cursor: pointer;
|
|
489
|
+
opacity: 0.6;
|
|
490
|
+
border-radius: 3px;
|
|
491
|
+
}
|
|
492
|
+
.tree-folder-action:hover { opacity: 1; background: var(--sidebar-hover); }
|
|
493
|
+
.tree-folder-action svg { width: 12px; height: 12px; }
|
|
494
|
+
|
|
495
|
+
.tree-folder-body {
|
|
496
|
+
display: flex;
|
|
497
|
+
flex-direction: column;
|
|
498
|
+
/* No left padding here — the session rows themselves get padding-left
|
|
499
|
+
that lines their label up under the folder name. Keeping the bg
|
|
500
|
+
extend across the full sidebar width when selected/hovered. */
|
|
501
|
+
padding-left: 0;
|
|
502
|
+
}
|
|
503
|
+
.tree-empty {
|
|
504
|
+
font-size: 13px;
|
|
505
|
+
color: var(--ink);
|
|
506
|
+
padding: 3px 8px;
|
|
507
|
+
font-style: italic;
|
|
508
|
+
opacity: 0.5;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* Session rows. Codex uses a colored dot + truncated label + tiny
|
|
512
|
+
timestamp on the right. */
|
|
513
|
+
.tree-session {
|
|
514
|
+
display: flex;
|
|
515
|
+
align-items: center;
|
|
516
|
+
gap: 8px;
|
|
517
|
+
/* Match the folder head: 8px left padding, then a 14px icon column
|
|
518
|
+
(the colored dot lives here, sized 8px and centered), then 8px gap
|
|
519
|
+
before the label — lines the label up exactly under the folder name. */
|
|
520
|
+
padding: 4px 8px;
|
|
521
|
+
border-radius: 4px;
|
|
522
|
+
cursor: pointer;
|
|
523
|
+
font-size: 13px;
|
|
524
|
+
color: var(--ink);
|
|
525
|
+
font-family: var(--body);
|
|
526
|
+
user-select: none;
|
|
527
|
+
transition: background .1s;
|
|
528
|
+
min-height: 28px;
|
|
529
|
+
}
|
|
530
|
+
.tree-session:hover { background: var(--sidebar-hover); }
|
|
531
|
+
.tree-session.is-active {
|
|
532
|
+
background: var(--sidebar-active);
|
|
533
|
+
font-weight: 500;
|
|
534
|
+
}
|
|
535
|
+
.tree-dot {
|
|
536
|
+
width: 14px;
|
|
537
|
+
height: 14px;
|
|
538
|
+
flex: 0 0 14px;
|
|
539
|
+
display: inline-flex;
|
|
540
|
+
align-items: center;
|
|
541
|
+
justify-content: center;
|
|
542
|
+
position: relative;
|
|
543
|
+
}
|
|
544
|
+
.tree-dot::after {
|
|
545
|
+
content: "";
|
|
546
|
+
width: 7px;
|
|
547
|
+
height: 7px;
|
|
548
|
+
border-radius: 50%;
|
|
549
|
+
background: var(--ink-faint);
|
|
550
|
+
transition: background .15s ease;
|
|
551
|
+
}
|
|
552
|
+
.tree-session.is-running .tree-dot::after {
|
|
553
|
+
background: var(--green);
|
|
554
|
+
box-shadow: 0 0 0 3px rgba(74, 138, 74, 0.18);
|
|
555
|
+
}
|
|
556
|
+
/* Pulse halo for running sessions — implemented on .tree-dot (the
|
|
557
|
+
wrapper) via a second pseudo-element animating opacity + transform,
|
|
558
|
+
not box-shadow. opacity is composited; box-shadow forces paint every
|
|
559
|
+
frame, and with N running sessions in the sidebar that adds up. */
|
|
560
|
+
.tree-session.is-running .tree-dot::before {
|
|
561
|
+
content: "";
|
|
562
|
+
position: absolute;
|
|
563
|
+
left: 50%; top: 50%;
|
|
564
|
+
width: 7px; height: 7px;
|
|
565
|
+
margin: -3.5px 0 0 -3.5px;
|
|
566
|
+
border-radius: 50%;
|
|
567
|
+
background: var(--green);
|
|
568
|
+
opacity: 0.45;
|
|
569
|
+
animation: tree-dot-pulse 1.8s ease-in-out infinite;
|
|
570
|
+
pointer-events: none;
|
|
571
|
+
}
|
|
572
|
+
.tree-session.is-stopped .tree-dot::after {
|
|
573
|
+
background: var(--ink-faint);
|
|
574
|
+
box-shadow: none;
|
|
575
|
+
}
|
|
576
|
+
@keyframes tree-dot-pulse {
|
|
577
|
+
0%, 100% { opacity: 0.45; transform: scale(1); }
|
|
578
|
+
50% { opacity: 0; transform: scale(2.4); }
|
|
579
|
+
}
|
|
580
|
+
.tree-label {
|
|
581
|
+
flex: 1;
|
|
582
|
+
white-space: nowrap;
|
|
583
|
+
overflow: hidden;
|
|
584
|
+
text-overflow: ellipsis;
|
|
585
|
+
}
|
|
586
|
+
.tree-session-actions {
|
|
587
|
+
display: none;
|
|
588
|
+
gap: 2px;
|
|
589
|
+
flex-shrink: 0;
|
|
590
|
+
}
|
|
591
|
+
.tree-session:hover .tree-session-actions { display: inline-flex; }
|
|
592
|
+
.tree-session:hover .tree-meta { display: none; }
|
|
593
|
+
.tree-session-action {
|
|
594
|
+
appearance: none;
|
|
595
|
+
background: transparent;
|
|
596
|
+
border: 0;
|
|
597
|
+
display: inline-flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
justify-content: center;
|
|
600
|
+
width: 18px;
|
|
601
|
+
height: 18px;
|
|
602
|
+
padding: 0;
|
|
603
|
+
color: var(--ink);
|
|
604
|
+
cursor: pointer;
|
|
605
|
+
opacity: 0.6;
|
|
606
|
+
border-radius: 3px;
|
|
607
|
+
}
|
|
608
|
+
.tree-session-action:hover { opacity: 1; background: var(--sidebar-hover); }
|
|
609
|
+
.tree-session-action svg { width: 12px; height: 12px; }
|
|
610
|
+
.tree-meta {
|
|
611
|
+
font-size: 13px;
|
|
612
|
+
color: var(--ink);
|
|
613
|
+
font-variant-numeric: tabular-nums;
|
|
614
|
+
flex-shrink: 0;
|
|
615
|
+
opacity: 0.5;
|
|
616
|
+
}
|