feat: show issue comments inline without toggle
This commit is contained in:
parent
f96171a345
commit
fac5063878
2 changed files with 5 additions and 26 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -2724,8 +2724,7 @@ table.ts-allegiance td:first-child {
|
|||
.issue-resolve-btn,
|
||||
.issue-reopen-btn,
|
||||
.issue-delete-btn,
|
||||
.issue-edit-btn,
|
||||
.issue-comment-btn {
|
||||
.issue-edit-btn {
|
||||
padding: 1px 6px;
|
||||
font-size: 0.65rem;
|
||||
background: transparent;
|
||||
|
|
@ -2773,16 +2772,6 @@ table.ts-allegiance td:first-child {
|
|||
color: #fff;
|
||||
}
|
||||
|
||||
.issue-comment-btn {
|
||||
color: #6af;
|
||||
border: 1px solid #6af;
|
||||
}
|
||||
|
||||
.issue-comment-btn:hover {
|
||||
background: #6af;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.issues-form {
|
||||
padding: 6px 8px;
|
||||
border-top: 1px solid #444;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue