EZQMS-325 Fixes for EZQMS documents table of contents (#3987)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-11-14 22:06:18 +07:00 committed by GitHub
parent 0e2eb336ad
commit 11e93c6efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 14 deletions

View File

@ -330,16 +330,18 @@
{#if textFormatCategories.length > 0 && textNodeActions.length > 0} {#if textFormatCategories.length > 0 && textNodeActions.length > 0}
<div class="buttons-divider" /> <div class="buttons-divider" />
{/if} {/if}
{#each textNodeActions as action} {#if textNodeActions.length > 0}
<StyleButton {#each textNodeActions as action}
icon={action.icon} <StyleButton
size={formatButtonSize} icon={action.icon}
selected={false} size={formatButtonSize}
disabled={textEditor.view.state.selection.empty} selected={false}
showTooltip={{ label: action.label }} disabled={textEditor.view.state.selection.empty}
on:click={() => { showTooltip={{ label: action.label }}
dispatch('action', { action: action.id, editor: textEditor }) on:click={async () => {
}} dispatch('action', { action: action.id, editor: textEditor })
/> }}
{/each} />
{/each}
{/if}
{/if} {/if}

View File

@ -36,8 +36,8 @@
<FocusHandler {manager} /> <FocusHandler {manager} />
<div class="selectPopup" use:resizeObserver={() => dispatch('changeContent')}> <div class="selectPopup" use:resizeObserver={() => dispatch('changeContent')}>
<div class="header ml-2"> <div class="header">
<span class="fs-title overflow-label"> <span class="fs-title overflow-label ml-2">
<Label label={textEditorPlugin.string.TableOfContents} /> <Label label={textEditorPlugin.string.TableOfContents} />
</span> </span>
</div> </div>