Skip to content

Commit d61fd3a

Browse files
committed
Fix pane/layout restore and empty panel interactions
1 parent 347513c commit d61fd3a

18 files changed

Lines changed: 887 additions & 567 deletions

File tree

anycode/App.tsx

Lines changed: 131 additions & 451 deletions
Large diffs are not rendered by default.

anycode/components/agent/AcpEmptyPane.css

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
text-align: center;
1010
padding: 16px 14px;
1111
gap: 10px;
12+
user-select: none;
13+
-webkit-user-select: none;
1214
}
1315

1416
.acp-pane-empty-actions {
@@ -22,13 +24,11 @@
2224

2325
.acp-pane-empty-action {
2426
background: rgba(255, 255, 255, 0.03);
25-
border: 1px solid rgba(255, 255, 255, 0.12);
26-
color: var(--text-color, #cfd3d8);
2727
cursor: pointer;
2828
font-size: 12px;
2929
font-weight: 450;
3030
padding: 7px 12px;
31-
border-radius: 12px;
31+
border-radius: 8px;
3232
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
3333
line-height: 1.1;
3434
max-width: 100%;
@@ -47,7 +47,6 @@
4747
width: min(720px, 100%);
4848
margin: 0 auto;
4949
padding: 10px 0 0;
50-
border-top: 1px solid rgba(255, 255, 255, 0.1);
5150
}
5251

5352
.acp-pane-opened-agents-title {
@@ -107,38 +106,37 @@
107106
width: min(720px, 100%);
108107
margin: 0 auto;
109108
padding: 10px 0 0;
110-
border-top: 1px solid rgba(255, 255, 255, 0.08);
111109
}
112110

113111
.acp-pane-start-agents-title {
112+
color: #8f8f8f;
113+
text-transform: uppercase;
114114
font-size: 12px;
115-
color: #c8ccd2;
115+
letter-spacing: 0.08em;
116116
margin-bottom: 6px;
117-
letter-spacing: 0.01em;
118-
font-weight: 500;
119117
}
120118

121119
.acp-pane-settings-btn {
122-
border: 1px solid rgba(149, 191, 255, 0.35);
123-
background: rgba(149, 191, 255, 0.08);
124-
color: #b8d6ff;
120+
border: 1px solid rgba(255, 255, 255, 0.12);
121+
background: rgba(255, 255, 255, 0.03);
122+
color: var(--text-color, #cfd3d8);
125123
font-size: 12px;
126124
line-height: 1;
127125
padding: 7px 12px;
128126
border-radius: 10px;
129127
cursor: pointer;
128+
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
130129
}
131130

132131
.acp-pane-settings-btn:hover {
133-
color: #d3e6ff;
134-
border-color: rgba(149, 191, 255, 0.55);
135-
background: rgba(149, 191, 255, 0.16);
132+
background-color: rgba(255, 255, 255, 0.08);
133+
border-color: rgba(255, 255, 255, 0.22);
134+
color: #ffffff;
136135
}
137136

138137
.acp-pane-settings-wrap {
139138
margin-top: 10px;
140139
padding-top: 10px;
141-
border-top: 1px solid rgba(255, 255, 255, 0.08);
142140
display: flex;
143141
justify-content: center;
144142
}

anycode/components/layout/Layout.css

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
.layout {
22
width: 100%;
33
height: 100%;
4+
display: flex;
5+
flex-direction: column;
6+
gap: 0.5px;
7+
min-width: 0;
8+
min-height: 0;
9+
}
10+
11+
.layout-main {
12+
flex: 1;
13+
min-width: 0;
14+
min-height: 0;
15+
overflow: hidden;
416
}
517

618
.layout-root {
@@ -301,7 +313,12 @@
301313
display: flex;
302314
flex-direction: column;
303315
gap: 10px;
316+
align-items: center;
317+
justify-content: center;
318+
text-align: center;
304319
background: var(--background-color, #242424);
320+
user-select: none;
321+
-webkit-user-select: none;
305322
}
306323

307324
.layout-panel-picker-title {
@@ -312,44 +329,41 @@
312329
}
313330

314331
.layout-panel-picker-list {
315-
display: grid;
316-
grid-template-columns: repeat(2, minmax(0, 1fr));
332+
display: flex;
333+
flex-wrap: wrap;
334+
justify-content: center;
335+
align-items: center;
317336
gap: 8px;
337+
width: min(720px, 100%);
318338
}
319339

320340
.layout-panel-picker-item {
321-
border: 1px solid #4a4a4a;
322341
background: #2a2a2a;
323-
color: #cfcfcf;
324342
border-radius: 8px;
325343
padding: 8px 10px;
326344
text-align: left;
327345
cursor: pointer;
328346
font-size: 12px;
347+
flex: 0 0 auto;
348+
max-width: 100%;
349+
white-space: nowrap;
329350
}
330351

331352
.layout-panel-picker-item:hover {
332353
color: #ffffff;
333354
border-color: #666;
334355
}
335356

336-
.layout-dock-panel--toolbar {
337-
border-top: none;
338-
border-radius: 0 0 8px 8px;
339-
}
340-
341-
.app-container.toolbar-header-visible .layout-dock-panel--toolbar {
342-
border-top: none;
343-
border-radius: 0 0 8px 8px;
344-
}
345-
346-
.app-container.toolbar-header-compact .layout-dock-panel--toolbar {
347-
border-top: 1px solid #4a4a4a;
357+
.layout-toolbar {
358+
flex: 0 0 44px;
359+
min-height: 44px;
360+
width: 100%;
361+
min-width: 0;
362+
overflow: hidden;
363+
border: 1px solid #4a4a4a;
348364
border-radius: 8px;
349-
}
350-
351-
.app-container.toolbar-header-compact .layout .dv-groupview:has(> .dv-content-container .layout-dock-panel--toolbar) > .dv-tabs-and-actions-container {
352-
display: none !important;
365+
background: var(--background-color, #242424);
366+
box-sizing: border-box;
353367
}
354368

355369
.dock-split {

0 commit comments

Comments
 (0)