feat: show issue comments inline without toggle

This commit is contained in:
Erik 2026-04-10 17:44:52 +02:00
parent f96171a345
commit fac5063878
2 changed files with 5 additions and 26 deletions

View file

@ -4307,21 +4307,11 @@ async function refreshIssuesList(win) {
});
actionsDiv.appendChild(editBtn);
// Comment toggle button
const commentBtn = document.createElement('button');
commentBtn.textContent = `\uD83D\uDCAC ${comments.length}`;
commentBtn.className = 'issue-comment-btn';
commentBtn.addEventListener('click', () => {
const existing = row.querySelector('.issue-comments-section');
if (existing) {
existing.remove();
} else {
showCommentsSection(row, issue, win);
}
});
actionsDiv.appendChild(commentBtn);
row.appendChild(actionsDiv);
// Comments section — always visible inline
showCommentsSection(row, issue, win);
listDiv.appendChild(row);
});
} catch (err) {