feat(filetree): add filesystem watch support to WebContainer environment and auto-refresh file tree; improve icon handling and context menu behavior
This commit is contained in:
@@ -246,7 +246,7 @@ export class DeesContextmenu extends DeesElement {
|
||||
@mouseleave=${() => this.handleMenuItemLeave()}
|
||||
>
|
||||
${menuItem.iconName ? html`
|
||||
<dees-icon .icon="${`lucide:${menuItem.iconName}`}"></dees-icon>
|
||||
<dees-icon .icon="${menuItem.iconName}"></dees-icon>
|
||||
` : ''}
|
||||
<span class="menuitem-text">${menuItem.name}</span>
|
||||
${menuItem.shortcut && !hasSubmenu ? html`
|
||||
@@ -436,8 +436,9 @@ export class DeesContextmenu extends DeesElement {
|
||||
}
|
||||
|
||||
// Only destroy window layer if this is not a submenu
|
||||
// Don't await - let cleanup happen in background for instant visual feedback
|
||||
if (this.windowLayer && !this.parentMenu) {
|
||||
await this.windowLayer.destroy();
|
||||
this.windowLayer.destroy();
|
||||
}
|
||||
|
||||
this.style.opacity = '0';
|
||||
|
||||
Reference in New Issue
Block a user