Added parameter to remove scroll from Panel content (#3865)

Signed-off-by: Oleg Solodkov <oleg.solodkov@xored.com>
This commit is contained in:
Oleg Solodkov
2023-10-22 12:26:33 +01:00
committed by GitHub
parent d3dc6917ba
commit e3e2b02d40
@@ -53,6 +53,7 @@
export let embedded = false
export let contentClasses: string | undefined = undefined
export let content: HTMLElement | undefined | null = undefined
export let withoutContentScroll: boolean = false
let lastHref: string
let timer: any
@@ -206,6 +207,24 @@
{/key}
{/if}
</div>
{:else if withoutContentScroll}
<div class={contentClasses ?? 'popupPanel-body__main-content py-8 clear-mins'} class:max={useMaxWidth}>
<slot />
{#if !withoutActivity}
{#key object._id}
<Component
is={activity.component.Activity}
props={{
object,
showCommenInput: !withoutInput,
shouldScroll: embedded,
focusIndex: 1000,
boundary: content
}}
/>
{/key}
{/if}
</div>
{:else}
<Scroller
bind:divScroll={content}