mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-26 18:29:51 +00:00
Add scroller to the "StepsDialog" content (#2697)
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
parent
5a1c8004ac
commit
c962cffd69
@ -169,19 +169,21 @@
|
||||
{@const { component, props } = currentStepModel}
|
||||
{@const isMobile = $deviceInfo.isMobile}
|
||||
|
||||
<div
|
||||
class="clear-mins"
|
||||
class:popupPanel-body__mobile-content={isMobile}
|
||||
class:popupPanel-body__main-content={!isMobile}
|
||||
class:py-8={!isMobile}
|
||||
class:max={!isMobile && useMaxWidth}
|
||||
>
|
||||
{#if typeof component === 'string'}
|
||||
<Component bind:innerRef={step} is={component} {props} on:change={handleComponentChange} />
|
||||
{:else}
|
||||
<svelte:component this={component} bind:this={step} {...props} on:change={handleComponentChange} />
|
||||
{/if}
|
||||
</div>
|
||||
<Scroller>
|
||||
<div
|
||||
class="clear-mins flex-no-shrink"
|
||||
class:popupPanel-body__mobile-content={isMobile}
|
||||
class:popupPanel-body__main-content={!isMobile}
|
||||
class:py-8={!isMobile}
|
||||
class:max={!isMobile && useMaxWidth}
|
||||
>
|
||||
{#if typeof component === 'string'}
|
||||
<Component bind:innerRef={step} is={component} {props} on:change={handleComponentChange} />
|
||||
{:else}
|
||||
<svelte:component this={component} bind:this={step} {...props} on:change={handleComponentChange} />
|
||||
{/if}
|
||||
</div>
|
||||
</Scroller>
|
||||
{/if}
|
||||
</Panel>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user