EZQMS-1140: Controlled doc content display improvements (#6110)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-07-22 10:56:34 +04:00 committed by GitHub
parent 9cc64569ba
commit 0f1231e572
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -154,7 +154,9 @@
<slot name="before-header" />
</svelte:fragment>
<svelte:fragment slot="index">
<span class="sectionTitle">
{index + 1}
</span>
</svelte:fragment>
<svelte:fragment slot="header">
<!-- svelte-ignore a11y-click-events-have-key-events -->
@ -164,6 +166,7 @@
class:text-editor-highlighted-node-warning={isActiveSectionNode ||
$groupedDocumentComments.hasDocumentComments(value.key)}
class:text-editor-highlighted-node-selected={isActiveSectionNode}
class="sectionTitle"
bind:this={sectionElement}
on:click={handleDisplayDocumentComments}
>
@ -203,3 +206,10 @@
/>
</svelte:fragment>
</FieldSectionEditor>
<style lang="scss">
.sectionTitle {
font-size: 1.75rem;
line-height: 150%;
}
</style>

View File

@ -214,6 +214,7 @@
</div>
{/each}
{/if}
<div class="bottomSpacing no-print" />
</div>
</Scroller>
</div>
@ -269,6 +270,9 @@
}
}
.bottomSpacing {
padding-bottom: 30vh;
}
.drag-over-highlight {
opacity: 0.2;
}