Fix formatting

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
Anton Alexeyev 2025-05-22 11:16:57 +07:00
parent 12e6f0d6f9
commit 8c76611fd2
3 changed files with 17 additions and 10 deletions

View File

@ -1,5 +1,4 @@
<script lang="ts">
import { AnySvelteComponent, NavGroup, Scroller } from '@hcengineering/ui'
import ChatNavItem from './chat/navigator/ChatNavItem.svelte'
import { createQuery, getClient } from '@hcengineering/presentation'
@ -47,15 +46,14 @@
items = newItems
}
)
</script>
<Scroller shrink>
{#if items.length > 0}
<NavGroup
_id='channels'
label='channels'
categoryName='channels'
_id="channels"
label="channels"
categoryName="channels"
highlighted={items.some((it) => it.id === object?._id)}
isFold={false}
empty={items.length === 0}

View File

@ -119,9 +119,12 @@
? readonly || (channel as Space).archived
: readonly
$: separatorIndex = account.role === AccountRole.ReadOnlyGuest
? messages.length - 1
: ($newTimestampStore !== undefined ? messages.findIndex((message) => (message.createdOn ?? 0) >= ($newTimestampStore ?? 0)) : -1)
$: separatorIndex =
account.role === AccountRole.ReadOnlyGuest
? messages.length - 1
: $newTimestampStore !== undefined
? messages.findIndex((message) => (message.createdOn ?? 0) >= ($newTimestampStore ?? 0))
: -1
$: if (!freeze && !isPageHidden && isScrollInitialized) {
read()
@ -615,7 +618,11 @@
{@const isSelected = message._id === selectedMessageId}
{@const canGroup = canGroupChatMessages(message, messages[index - 1])}
{#if separatorIndex === index}
<ActivityMessagesSeparator bind:element={separatorDiv} label={activity.string.New} visible={account.role !== AccountRole.ReadOnlyGuest}/>
<ActivityMessagesSeparator
bind:element={separatorDiv}
label={activity.string.New}
visible={account.role !== AccountRole.ReadOnlyGuest}
/>
{/if}
{#if !isThread && message.createdOn && $datesStore.includes(message.createdOn)}

View File

@ -129,7 +129,9 @@
{count}
title={item.title}
description={item.description}
secondaryNotifyMarker={context === undefined ? false : (context?.lastViewedTimestamp ?? 0) < (context?.lastUpdateTimestamp ?? 0)}
secondaryNotifyMarker={context === undefined
? false
: (context?.lastViewedTimestamp ?? 0) < (context?.lastUpdateTimestamp ?? 0)}
{actions}
{type}
on:click={() => {