Add small chat ui fixes (#6028)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-07-09 18:18:43 +04:00 committed by GitHub
parent 617c144daf
commit 51475b2979
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 11 deletions

View File

@ -197,6 +197,7 @@ export class ChannelDataProvider implements IChannelDataProvider {
const isLoadingLatest = startPosition === undefined || startPosition === -1 || count - startPosition <= this.limit
if (loadAll) {
this.isTailLoading.set(true)
this.loadTail(undefined, combineActivityMessages)
} else if (isLoadingLatest) {
const startIndex = Math.max(0, count - this.limit)

View File

@ -68,6 +68,7 @@
const minMsgHeightRem = 2
const client = getClient()
const hierarchy = client.getHierarchy()
const inboxClient = InboxNotificationsClientImpl.getClient()
const contextByDocStore = inboxClient.contextByDoc
@ -650,7 +651,7 @@
{/if}
<slot name="header" />
{#if displayMessages.length === 0}
{#if displayMessages.length === 0 && !hierarchy.isDerived(objectClass, activity.class.ActivityMessage)}
<BlankView
icon={chunter.icon.Thread}
header={chunter.string.NoMessagesInChannel}

View File

@ -14,23 +14,16 @@
-->
<script lang="ts">
import { Asset } from '@hcengineering/platform'
import {
AnySvelteComponent,
Icon,
IconFolder,
IconSize,
IconWithEmoji,
getPlatformColorDef,
themeStore
} from '@hcengineering/ui'
import { AnySvelteComponent, Icon, IconSize, IconWithEmoji, getPlatformColorDef, themeStore } from '@hcengineering/ui'
import view, { IconProps } from '@hcengineering/view'
import document from '@hcengineering/document'
import { ComponentType } from 'svelte'
export let value: IconProps
export let size: IconSize
export let iconWithEmoji: AnySvelteComponent | Asset | ComponentType | undefined = view.ids.IconWithEmoji
export let defaultIcon: AnySvelteComponent | Asset | ComponentType = IconFolder
export let defaultIcon: AnySvelteComponent | Asset | ComponentType = document.icon.Document
</script>
<Icon