panelType && editor.setActivePanel(panelType)} class={`panel ${className}`.trim()} {classes} style={styleName} {styles}> {#each tabLabels as tabLabel, tabIndex} tabPointerDown(e, tabIndex)} on:click={(e) => e.stopPropagation()} on:auxclick={(e) => { // Middle mouse button click if (e.button === BUTTON_MIDDLE) { e.stopPropagation(); closeAction?.(tabIndex); } }} bind:this={tabElements[tabIndex]} > {tabLabel.name} {#if tabLabel.unsaved} * {/if} {#if tabCloseButtons} { e?.stopPropagation(); closeAction?.(tabIndex); }} icon="CloseX" size={16} data-close-button /> {/if} {/each} {#if dragging && insertionMarkerLeft !== undefined}
{/if}
{#if panelType} {/if}