mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
EZQMS-325 Fixes for EZQMS documents table of contents (#3987)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
parent
0e2eb336ad
commit
11e93c6efd
@ -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}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user