Merge pull request #7 from built-by-as/revert-5-add-worktree-path-to-session-sidebar
Revert "Add worktree path display to session sidebar"
This commit is contained in:
commit
186c970d9d
|
|
@ -329,20 +329,14 @@ function addToSidebar(sessionId: string, name: string, hasActivePty: boolean) {
|
||||||
const list = document.getElementById("session-list");
|
const list = document.getElementById("session-list");
|
||||||
if (!list) return;
|
if (!list) return;
|
||||||
|
|
||||||
const session = sessions.get(sessionId);
|
|
||||||
const worktreePath = session?.worktreePath || '';
|
|
||||||
|
|
||||||
const item = document.createElement("div");
|
const item = document.createElement("div");
|
||||||
item.id = `sidebar-${sessionId}`;
|
item.id = `sidebar-${sessionId}`;
|
||||||
item.className = "session-list-item";
|
item.className = "session-list-item";
|
||||||
item.innerHTML = `
|
item.innerHTML = `
|
||||||
<div class="flex items-center space-x-2 flex-1 session-name-container">
|
<div class="flex items-center space-x-2 flex-1 session-name-container">
|
||||||
<span class="session-indicator ${hasActivePty ? 'active' : ''}"></span>
|
<span class="session-indicator ${hasActivePty ? 'active' : ''}"></span>
|
||||||
<div class="flex-1 min-w-0">
|
<span class="truncate session-name-text" data-id="${sessionId}">${name}</span>
|
||||||
<span class="truncate session-name-text block" data-id="${sessionId}">${name}</span>
|
|
||||||
<input type="text" class="session-name-input hidden" data-id="${sessionId}" value="${name}" />
|
<input type="text" class="session-name-input hidden" data-id="${sessionId}" value="${name}" />
|
||||||
<span class="session-worktree-path text-xs text-gray-500 truncate block">${worktreePath}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<button class="session-delete-btn" data-id="${sessionId}" title="Delete session">×</button>
|
<button class="session-delete-btn" data-id="${sessionId}" title="Delete session">×</button>
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -100,10 +100,6 @@
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-worktree-path {
|
|
||||||
@apply text-xs text-gray-500 truncate block mt-0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tabs */
|
/* Tabs */
|
||||||
.tabs-container {
|
.tabs-container {
|
||||||
@apply flex bg-gray-900 border-b border-gray-700 overflow-x-auto;
|
@apply flex bg-gray-900 border-b border-gray-700 overflow-x-auto;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue