Skip to content

Commit 186c970

Browse files
authored
Merge pull request #7 from built-by-as/revert-5-add-worktree-path-to-session-sidebar
Revert "Add worktree path display to session sidebar"
2 parents d1df3ba + c07124b commit 186c970

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

renderer.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -329,20 +329,14 @@ function addToSidebar(sessionId: string, name: string, hasActivePty: boolean) {
329329
const list = document.getElementById("session-list");
330330
if (!list) return;
331331

332-
const session = sessions.get(sessionId);
333-
const worktreePath = session?.worktreePath || '';
334-
335332
const item = document.createElement("div");
336333
item.id = `sidebar-${sessionId}`;
337334
item.className = "session-list-item";
338335
item.innerHTML = `
339336
<div class="flex items-center space-x-2 flex-1 session-name-container">
340337
<span class="session-indicator ${hasActivePty ? 'active' : ''}"></span>
341-
<div class="flex-1 min-w-0">
342-
<span class="truncate session-name-text block" data-id="${sessionId}">${name}</span>
343-
<input type="text" class="session-name-input hidden" data-id="${sessionId}" value="${name}" />
344-
<span class="session-worktree-path text-xs text-gray-500 truncate block">${worktreePath}</span>
345-
</div>
338+
<span class="truncate session-name-text" data-id="${sessionId}">${name}</span>
339+
<input type="text" class="session-name-input hidden" data-id="${sessionId}" value="${name}" />
346340
</div>
347341
<button class="session-delete-btn" data-id="${sessionId}" title="Delete session">×</button>
348342
`;

styles.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@
100100
min-width: 80px;
101101
}
102102

103-
.session-worktree-path {
104-
@apply text-xs text-gray-500 truncate block mt-0.5;
105-
}
106-
107103
/* Tabs */
108104
.tabs-container {
109105
@apply flex bg-gray-900 border-b border-gray-700 overflow-x-auto;

0 commit comments

Comments
 (0)