Fix office person assignee (#9798)

This commit is contained in:
Anton Alexeyev
2025-09-08 22:45:36 +07:00
committed by GitHub
parent 59c8f05508
commit cc3c41383e
2 changed files with 11 additions and 2 deletions
@@ -59,6 +59,7 @@
export let avatarSize: IconSize = kind === 'regular' ? 'small' : 'card'
export let justify: 'left' | 'center' = 'center'
export let width: string | undefined = undefined
export let height: string | undefined = undefined
export let shrink: number = 0
export let focusIndex = -1
export let showTooltip: LabelAndProps | PersonLabelTooltip | undefined = undefined
@@ -132,7 +133,14 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div {id} bind:this={container} class="min-w-0" class:w-full={width === '100%'} style:flex-shrink={shrink}>
<div
{id}
bind:this={container}
class="min-w-0"
class:w-full={width === '100%'}
class:h-full={height === '100%'}
style:flex-shrink={shrink}
>
{#if $$slots.content}
<div
class="w-full h-full flex-streatch"
@@ -204,13 +204,14 @@
if (isOffice(room) && rX === 0 && rY === 0) e.stopPropagation()
}}
>
{#if isOffice(room) && rX === 0 && rY === 0}
{#if isOffice(room) && rX === 0 && rY === 0 && !room.person}
<AssigneeBox
_class={contact.class.Person}
excluded={excludedPersons}
shouldShowName={false}
showNavigate={false}
width={'100%'}
height={'100%'}
label={contact.string.Person}
value={room.person}
avatarSize={'full'}