Fix create height (#2633)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-14 11:55:10 +06:00 committed by GitHub
parent 168ad1031f
commit 582a679910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 11 deletions

View File

@ -741,7 +741,13 @@
}}
/>
{/key}
<IssueTemplateChilds bind:children={subIssues} sprint={object.sprint} project={object.project} isScrollable />
<IssueTemplateChilds
bind:children={subIssues}
sprint={object.sprint}
project={object.project}
isScrollable
maxHeight="limited"
/>
<svelte:fragment slot="pool">
{#if issueStatuses}
<div id="status-editor">

View File

@ -166,6 +166,7 @@
project={object.project}
sprint={object.sprint}
teamId={spaceRef?.identifier ?? 'TSK'}
maxHeight="limited"
/>
<svelte:fragment slot="pool">
<PriorityEditor

View File

@ -254,6 +254,7 @@
{#key template._id && currentTeam !== undefined}
{#if currentTeam !== undefined}
<SubIssueTemplates
maxHeight="limited"
bind:children={template.children}
on:create-issue={createIssue}
on:update-issue={updateIssue}

View File

@ -15,7 +15,7 @@
<script lang="ts">
import { Ref } from '@hcengineering/core'
import { IssueTemplateChild, Project, Sprint } from '@hcengineering/tracker'
import { Button, closeTooltip, ExpandCollapse, IconAdd } from '@hcengineering/ui'
import { Button, closeTooltip, ExpandCollapse, IconAdd, Scroller } from '@hcengineering/ui'
import { afterUpdate } from 'svelte'
import { createEventDispatcher } from 'svelte'
import tracker from '../../plugin'
@ -86,15 +86,17 @@
</div>
{#if hasSubIssues}
<ExpandCollapse isExpanded={!isCollapsed} duration={400} on:changeContent>
<div class="flex-col flex-no-shrink list clear-mins" class:collapsed={isCollapsed}>
<IssueTemplateChildList
{project}
{sprint}
bind:issues={children}
{teamId}
on:move={handleIssueSwap}
on:update-issue
/>
<div class="flex-col flex-no-shrink max-h-30 list clear-mins" class:collapsed={isCollapsed}>
<Scroller>
<IssueTemplateChildList
{project}
{sprint}
bind:issues={children}
{teamId}
on:move={handleIssueSwap}
on:update-issue
/>
</Scroller>
</div>
</ExpandCollapse>
{/if}