mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Layout for Activity (#44)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
1a86784a11
commit
45872a85fa
@ -20,7 +20,7 @@ import type { Doc, Ref, Space } from '@anticrm/core'
|
||||
import type { Comment } from '@anticrm/chunter'
|
||||
import { ReferenceInput } from '@anticrm/text-editor'
|
||||
import { createQuery, getClient } from '@anticrm/presentation'
|
||||
import { Section, IconComments } from '@anticrm/ui'
|
||||
import { Section, IconComments, Grid } from '@anticrm/ui'
|
||||
|
||||
import Bookmark from './icons/Bookmark.svelte'
|
||||
import Backlink from './Backlink.svelte'
|
||||
@ -45,20 +45,13 @@ function onMessage(event: CustomEvent) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="reference"><ReferenceInput on:message={onMessage}/></div>
|
||||
|
||||
<!-- <Section icon={IconComments} label={'Comments'}>
|
||||
<CommentViewer />
|
||||
</Section> -->
|
||||
{#if comments}
|
||||
{#each comments as comment}
|
||||
<Backlink {comment} />
|
||||
{/each}
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
.reference {
|
||||
margin-top: 24px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<Section icon={IconComments} label={'Comments'}>
|
||||
<Grid column={1} rowGap={1.5}>
|
||||
{#if comments}
|
||||
{#each comments as comment}
|
||||
<Backlink {comment} />
|
||||
{/each}
|
||||
{/if}
|
||||
<ReferenceInput on:message={onMessage}/>
|
||||
</Grid>
|
||||
</Section>
|
||||
|
Loading…
Reference in New Issue
Block a user