mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Added parameter to remove scroll from Panel content (#3865)
Signed-off-by: Oleg Solodkov <oleg.solodkov@xored.com>
This commit is contained in:
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}
|
||||
|
Loading…
Reference in New Issue
Block a user