UBER-784: updated WorkItemPresenter (#3710)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2023-09-18 07:31:22 +03:00 committed by GitHub
parent 50660dfecc
commit d47ef1b74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -60,6 +60,7 @@
export let avatarSize: IconSize = kind === 'regular' ? 'small' : 'card'
export let justify: 'left' | 'center' = 'center'
export let width: string | undefined = undefined
export let shrink: number = 0
export let focusIndex = -1
export let showTooltip: LabelAndProps | PersonLabelTooltip | undefined = undefined
export let showNavigate = true
@ -129,7 +130,14 @@
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div {id} bind:this={container} class="min-w-0" class:w-full={width === '100%'} class:h-full={$$slots.content}>
<div
{id}
bind:this={container}
class="min-w-0"
class:w-full={width === '100%'}
class:h-full={$$slots.content}
style:flex-shrink={shrink}
>
{#if $$slots.content}
<div
class="w-full h-full flex-streatch"

View File

@ -34,6 +34,7 @@
export let focusIndex: number | undefined = undefined
export let short: boolean = false
export let shouldShowName = true
export let shrink: number = 0
const client = getClient()
const dispatch = createEventDispatcher()
@ -102,6 +103,7 @@
{avatarSize}
{width}
{short}
{shrink}
{shouldShowName}
showNavigate={false}
justify={'left'}

View File

@ -142,6 +142,8 @@ import { get } from 'svelte/store'
export { default as SubIssueList } from './components/issues/edit/SubIssueList.svelte'
export { default as IssueStatusIcon } from './components/issues/IssueStatusIcon.svelte'
export { default as StatusPresenter } from './components/issues/StatusPresenter.svelte'
export { default as AssigneeEditor } from './components/issues/AssigneeEditor.svelte'
export { CreateProject, IssuePresenter, TitlePresenter }