mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 14:06:00 +03:00
Fix scrolling in EditStatuses (#253)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
fb581e570b
commit
99a9feb36a
@ -92,6 +92,7 @@ table {
|
||||
|
||||
.flex { display: flex; }
|
||||
.flex-grow { flex-grow: 1; }
|
||||
.flex-no-shrink { flex-shrink: 0; }
|
||||
.flex-nowrap {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
@ -164,6 +165,12 @@ table {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.vScroll {
|
||||
flex-grow: 1;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.h-full { height: 100%; }
|
||||
.square-36 { width: 2.25rem; height: 2.25rem; }
|
||||
|
||||
|
@ -114,12 +114,12 @@
|
||||
</div>
|
||||
<div class="tool" on:click={() => dispatch('close')}><Close size={'small'} /></div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<ScrollBox vertical stretch>
|
||||
<div class="flex-between states-header">
|
||||
<Label label={'ACTIVE STATUSES'} />
|
||||
<div on:click={addStatus}><CircleButton icon={IconAdd} size={'medium'} /></div>
|
||||
</div>
|
||||
<div class="flex-grow flex-col content">
|
||||
<div class="flex-no-shrink flex-between states-header">
|
||||
<Label label={'ACTIVE STATUSES'} />
|
||||
<div on:click={addStatus}><CircleButton icon={IconAdd} size={'medium'} /></div>
|
||||
</div>
|
||||
<div class="vScroll"><div class="h-full">
|
||||
{#each states as state, i}
|
||||
{#if state}
|
||||
<div bind:this={elements[i]} class="flex-between states" draggable={true}
|
||||
@ -148,7 +148,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
{/each}
|
||||
</ScrollBox>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -184,13 +184,7 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1rem 2.5rem;
|
||||
}
|
||||
.content { margin: 1rem 2.5rem 1rem 2.5rem; }
|
||||
}
|
||||
|
||||
.states {
|
||||
|
Loading…
Reference in New Issue
Block a user