Skip to content

Commit 4f288c0

Browse files
committed
feat(desktop): add saved workspace switching with branch/settings/file selection restore
1 parent 2971a37 commit 4f288c0

8 files changed

Lines changed: 1268 additions & 71 deletions

File tree

apps/desktop/src/App.css

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,39 @@
154154
.gc-diff-bar {
155155
display: flex;
156156
align-items: center;
157+
flex-wrap: wrap;
157158
gap: var(--space-4);
159+
row-gap: var(--space-2);
158160
padding: var(--space-3) var(--space-4);
159161
border-bottom: 1px solid var(--border-col);
160162
background: var(--surface-2);
161163
flex-shrink: 0;
162164
z-index: 9;
163165
}
164166

167+
.diff-bar-workspace-controls {
168+
display: flex;
169+
align-items: flex-end;
170+
gap: var(--space-2);
171+
min-width: min(100%, 280px);
172+
flex: 1 1 320px;
173+
}
174+
175+
.diff-bar-workspace-selector {
176+
display: flex;
177+
flex-direction: column;
178+
gap: var(--space-1);
179+
min-width: 220px;
180+
flex: 1;
181+
}
182+
165183
.diff-bar-branch-selector {
166184
display: flex;
167185
flex-direction: column;
168186
gap: var(--space-1);
169187
min-width: 200px;
170188
max-width: 300px;
189+
flex: 1 1 220px;
171190
}
172191

173192
.diff-bar-label {
@@ -184,26 +203,6 @@
184203
overflow: hidden;
185204
}
186205

187-
.diff-bar-project-info {
188-
display: flex;
189-
align-items: center;
190-
gap: var(--space-2);
191-
padding: var(--space-2) var(--space-3);
192-
background: color-mix(in oklab, var(--surface-1) 50%, transparent);
193-
border-radius: var(--radius-sm);
194-
font-size: var(--text-sm);
195-
color: inherit;
196-
opacity: 0.8;
197-
}
198-
199-
.diff-bar-project-name {
200-
font-weight: 500;
201-
max-width: 200px;
202-
overflow: hidden;
203-
text-overflow: ellipsis;
204-
white-space: nowrap;
205-
}
206-
207206
.gc-main-content {
208207
display: grid;
209208
grid-template-columns: minmax(320px, 1fr) clamp(280px, 32vw, 460px);
@@ -251,6 +250,10 @@
251250
padding: var(--space-3);
252251
gap: var(--space-3);
253252
}
253+
254+
.diff-bar-workspace-controls {
255+
min-width: 100%;
256+
}
254257
}
255258

256259
/* Height-based media query for short desktop windows */

0 commit comments

Comments
 (0)