mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +00:00
feat: Show only selected rows in 'View' mode if selections exist
This commit is contained in:
parent
bea746595e
commit
579794b265
1 changed files with 12 additions and 4 deletions
|
@ -117,11 +117,19 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
row.classList.remove('row-selected'); // Ensure no selection highlight
|
row.classList.remove('row-selected'); // Ensure no selection highlight
|
||||||
// view-highlighted is handled by row click listener
|
// view-highlighted is handled by row click listener
|
||||||
|
|
||||||
// Always show main row (if not filtered by search)
|
// In 'view' mode, hide row if selections exist AND this row is NOT selected
|
||||||
row.classList.remove('hidden-by-mode');
|
if (selectedRows.size > 0 && !isSelected) {
|
||||||
|
row.classList.add('hidden-by-mode');
|
||||||
|
if (detailsRow) detailsRow.classList.add('hidden-by-mode');
|
||||||
|
} else {
|
||||||
|
// Ensure row is not hidden by mode if it's selected or no selections exist
|
||||||
|
// This is handled by the reset at the start of the loop:
|
||||||
|
// row.classList.remove('hidden-by-mode');
|
||||||
|
// if (detailsRow) detailsRow.classList.remove('hidden-by-mode');
|
||||||
|
}
|
||||||
|
// Always hide details row content in view mode regardless of visibility class
|
||||||
if (detailsRow) {
|
if (detailsRow) {
|
||||||
detailsRow.classList.remove('hidden-by-mode');
|
detailsRow.style.display = 'none';
|
||||||
detailsRow.style.display = 'none'; // Always hide details in view mode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (mode === 'select') { // --- SELECT MODE ---
|
} else if (mode === 'select') { // --- SELECT MODE ---
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue