mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-02 08:51:11 +00:00
PresenceAvatars fixed limit for mobile (#7677)
This commit is contained in:
parent
8f5d15b0cd
commit
d05a5f6528
@ -18,7 +18,7 @@
|
|||||||
import { type Person, formatName } from '@hcengineering/contact'
|
import { type Person, formatName } from '@hcengineering/contact'
|
||||||
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
|
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
|
||||||
import { getEmbeddedLabel } from '@hcengineering/platform'
|
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 PresenceList from './PresenceList.svelte'
|
||||||
import { presenceByObjectId } from '../store'
|
import { presenceByObjectId } from '../store'
|
||||||
|
|
||||||
@ -33,10 +33,11 @@
|
|||||||
.map((p) => $personByIdStore.get(p))
|
.map((p) => $personByIdStore.get(p))
|
||||||
.filter((p): p is Person => p !== undefined)
|
.filter((p): p is Person => p !== undefined)
|
||||||
$: overLimit = persons.length > limit
|
$: overLimit = persons.length > limit
|
||||||
|
$: adaptive = checkAdaptiveMatching($deviceInfo.size, 'md') || overLimit
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if persons.length > 0}
|
{#if persons.length > 0}
|
||||||
{#if overLimit}
|
{#if adaptive}
|
||||||
<div
|
<div
|
||||||
class="hulyCombineAvatars-container"
|
class="hulyCombineAvatars-container"
|
||||||
use:tooltip={{ component: PresenceList, props: { persons, size }, direction: 'bottom' }}
|
use:tooltip={{ component: PresenceList, props: { persons, size }, direction: 'bottom' }}
|
||||||
|
@ -141,6 +141,7 @@ export class CommonPage {
|
|||||||
|
|
||||||
async pressYesDeletePopup (page: Page): Promise<void> {
|
async pressYesDeletePopup (page: Page): Promise<void> {
|
||||||
await this.viewStringDeleteObjectButtonPrimary().click()
|
await this.viewStringDeleteObjectButtonPrimary().click()
|
||||||
|
await expect(this.viewStringDeleteObjectButtonPrimary()).not.toBeVisible({ timeout: 1000 })
|
||||||
}
|
}
|
||||||
|
|
||||||
async addNewTagPopup (page: Page, title: string, description: string): Promise<void> {
|
async addNewTagPopup (page: Page, title: string, description: string): Promise<void> {
|
||||||
|
@ -78,6 +78,9 @@ export class ApplicationsPage extends CommonRecruitingPage {
|
|||||||
.locator('tr', { hasText: `${talentName.lastName} ${talentName.firstName}` })
|
.locator('tr', { hasText: `${talentName.lastName} ${talentName.firstName}` })
|
||||||
.locator('div[class*="firstCell"]')
|
.locator('div[class*="firstCell"]')
|
||||||
.click()
|
.click()
|
||||||
|
await expect(
|
||||||
|
this.page.locator('div.hulyHeader-container div.hulyHeader-titleGroup', { hasText: talentName.lastName })
|
||||||
|
).toBeVisible({ timeout: 1000 })
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkApplicationState (talentName: TalentName, done: string): Promise<void> {
|
async checkApplicationState (talentName: TalentName, done: string): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user