feat: improve action button visibility with explicit styling and icon rendering

- Add explicit border and background colors to action buttons for better visibility
- Ensure Lucide icons are properly rendered in action buttons with deferred safeCreateIcons call
- Adjust badge margin to prevent overlap with action buttons
- Add z-index to action buttons to ensure proper layering
This commit is contained in:
2026-03-30 21:12:22 -04:00
parent 9a812eb34a
commit 1a575020e6
2 changed files with 10 additions and 4 deletions
+6 -1
View File
@@ -4749,7 +4749,8 @@
button.className = "tree-item-action-btn";
button.setAttribute("aria-label", "Afficher le menu d’actions");
button.setAttribute("title", "Actions");
button.appendChild(icon("ellipsis", 16));
const iconEl = icon("ellipsis", 16);
button.appendChild(iconEl);
button.addEventListener("click", (e) => {
e.preventDefault();
e.stopPropagation();
@@ -4757,6 +4758,10 @@
ContextMenuManager.show(pos.x, pos.y, vault, path, type, isReadonly);
});
itemEl.appendChild(button);
// Ensure Lucide icons are rendered for the button
setTimeout(() => {
safeCreateIcons(button);
}, 0);
}
function attachTreeItemLongPress(itemEl, getMenuData) {