0 ? "Document" : undefined} tabCloseButtons={true} tabMinWidths={true} tabLabels={documentTabLabels} clickAction={(tabIndex) => editor.handle.selectDocument($portfolio.documents[tabIndex].id)} closeAction={(tabIndex) => editor.handle.closeDocumentWithConfirmation($portfolio.documents[tabIndex].id)} tabActiveIndex={$portfolio.activeDocumentIndex} bind:this={documentPanel} /> {#if $portfolio.spreadsheetOpen} resizePanel(e)} /> {/if} resizePanel(e)} /> resizePanel(e)} /> {#if $dialog.visible} {/if}