diff --git a/plugins/presence-resources/src/components/PresenceAvatars.svelte b/plugins/presence-resources/src/components/PresenceAvatars.svelte index e5b2704d8a7..65bd25d1a54 100644 --- a/plugins/presence-resources/src/components/PresenceAvatars.svelte +++ b/plugins/presence-resources/src/components/PresenceAvatars.svelte @@ -18,7 +18,7 @@ import { type Person, formatName } from '@hcengineering/contact' import { Avatar, personByIdStore } from '@hcengineering/contact-resources' import { getEmbeddedLabel } from '@hcengineering/platform' - import { IconSize, tooltip } from '@hcengineering/ui' + import { IconSize, tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui' import PresenceList from './PresenceList.svelte' import { presenceByObjectId } from '../store' @@ -33,10 +33,11 @@ .map((p) => $personByIdStore.get(p)) .filter((p): p is Person => p !== undefined) $: overLimit = persons.length > limit + $: adaptive = checkAdaptiveMatching($deviceInfo.size, 'md') || overLimit {#if persons.length > 0} - {#if overLimit} + {#if adaptive}