mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
TSK-1060. Fixed presenters and control panels (aside) (#2901)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
|
||||
{#if (value.component && value.component !== $activeComponent && groupBy !== 'component') || shouldShowPlaceholder}
|
||||
<div
|
||||
class="clear-mins"
|
||||
class:minus-margin={kind === 'list-header'}
|
||||
class:compression
|
||||
use:tooltip={{ label: value.component ? tracker.string.MoveToComponent : tracker.string.AddToComponent }}
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
|
||||
{#if value}
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div class="flex" on:click={navigateToComponent}>
|
||||
<div class="flex-presenter" class:inline-presenter={inline} on:click={navigateToComponent}>
|
||||
{#if !inline && shouldShowAvatar}
|
||||
<div class="mr-2" use:tooltip={{ label: tracker.string.Component }}>
|
||||
<div class="icon" use:tooltip={{ label: tracker.string.Component }}>
|
||||
<Icon icon={tracker.icon.Component} size={'small'} />
|
||||
</div>
|
||||
{/if}
|
||||
<span title={value.label} class="fs-bold cursor-pointer caption-color overflow-label clear-mins">
|
||||
<span title={value.label} class="label nowrap">
|
||||
{value.label}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -202,14 +202,20 @@
|
||||
{#if keys.length > 0}
|
||||
<div class="divider" />
|
||||
{#each keys as key (typeof key === 'string' ? key : key.key)}
|
||||
<AttributeBarEditor {key} _class={issue._class} object={issue} showHeader={true} />
|
||||
<AttributeBarEditor {key} _class={issue._class} object={issue} showHeader={true} size={'large'} />
|
||||
{/each}
|
||||
{/if}
|
||||
|
||||
{#each mixins as mixin}
|
||||
<div class="divider" />
|
||||
{#each getMixinKeys(mixin._id) as key (typeof key === 'string' ? key : key.key)}
|
||||
<AttributeBarEditor {key} _class={mixin._id} object={hierarchy.as(issue, mixin._id)} showHeader={true} />
|
||||
<AttributeBarEditor
|
||||
{key}
|
||||
_class={mixin._id}
|
||||
object={hierarchy.as(issue, mixin._id)}
|
||||
showHeader={true}
|
||||
size={'large'}
|
||||
/>
|
||||
{/each}
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
|
||||
<style lang="scss">
|
||||
.divider {
|
||||
flex-shrink: 0;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
grid-column: 1 / 3;
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="flex flex-wrap"
|
||||
class="flex flex-wrap clear-mins"
|
||||
class:minus-margin={kind === 'list-header'}
|
||||
class:compression
|
||||
style:flex-direction={twoRows ? 'column' : 'row'}
|
||||
|
||||
@@ -42,13 +42,14 @@
|
||||
|
||||
{#if value}
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div class="flex" on:click={navigateToSprint}>
|
||||
<div class="flex-presenter" class:inline-presenter={inline} on:click={navigateToSprint}>
|
||||
{#if !inline && shouldShowAvatar}
|
||||
<div class="mr-2" use:tooltip={{ label: tracker.string.Sprint }}>
|
||||
<div class="icon" use:tooltip={{ label: tracker.string.Sprint }}>
|
||||
<Icon icon={tracker.icon.Sprint} size={'small'} />
|
||||
</div>
|
||||
{/if}
|
||||
<span title={value.label} class="cursor-pointer fs-bold caption-color overflow-label clear-mins">{value.label}</span
|
||||
>
|
||||
<span title={value.label} class="label nowrap">
|
||||
{value.label}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user