Layout for Activity (#44)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2021-08-20 13:37:44 +03:00 committed by GitHub
parent 1a86784a11
commit 45872a85fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ import type { Doc, Ref, Space } from '@anticrm/core'
import type { Comment } from '@anticrm/chunter' import type { Comment } from '@anticrm/chunter'
import { ReferenceInput } from '@anticrm/text-editor' import { ReferenceInput } from '@anticrm/text-editor'
import { createQuery, getClient } from '@anticrm/presentation' 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 Bookmark from './icons/Bookmark.svelte'
import Backlink from './Backlink.svelte' import Backlink from './Backlink.svelte'
@ -45,20 +45,13 @@ function onMessage(event: CustomEvent) {
} }
</script> </script>
<div class="reference"><ReferenceInput on:message={onMessage}/></div> <Section icon={IconComments} label={'Comments'}>
<Grid column={1} rowGap={1.5}>
<!-- <Section icon={IconComments} label={'Comments'}> {#if comments}
<CommentViewer />
</Section> -->
{#if comments}
{#each comments as comment} {#each comments as comment}
<Backlink {comment} /> <Backlink {comment} />
{/each} {/each}
{/if} {/if}
<ReferenceInput on:message={onMessage}/>
<style lang="scss"> </Grid>
.reference { </Section>
margin-top: 24px;
}
</style>