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}
<div class="buttons-divider" />
{/if}
{#each textNodeActions as action}
<StyleButton
icon={action.icon}
size={formatButtonSize}
selected={false}
disabled={textEditor.view.state.selection.empty}
showTooltip={{ label: action.label }}
on:click={() => {
dispatch('action', { action: action.id, editor: textEditor })
}}
/>
{/each}
{#if textNodeActions.length > 0}
{#each textNodeActions as action}
<StyleButton
icon={action.icon}
size={formatButtonSize}
selected={false}
disabled={textEditor.view.state.selection.empty}
showTooltip={{ label: action.label }}
on:click={async () => {
dispatch('action', { action: action.id, editor: textEditor })
}}
/>
{/each}
{/if}
{/if}

View File

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