feat(planner): new layout for attached todos (#4995)

Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
Eduard Aksamitov
2024-03-18 18:58:00 +04:00
committed by GitHub
parent 5630af508c
commit c9761b3502
16 changed files with 171 additions and 227 deletions
@@ -62,6 +62,7 @@
export let _id: Ref<Document>
export let readonly: boolean = false
export let embedded: boolean = false
export let kind: 'default' | 'modern' = 'default'
$: readonly = $restrictionStore.readonly
@@ -229,7 +230,7 @@
<Panel
object={doc}
withoutActivity
allowClose={false}
allowClose={!embedded}
isAside={true}
customAside={aside}
bind:selectedAside
@@ -237,6 +238,7 @@
isCustomAttr={false}
isSub={false}
{embedded}
{kind}
bind:content
bind:innerWidth
bind:useMaxWidth
@@ -251,7 +253,13 @@
<svelte:fragment slot="utils">
{#if !$restrictionStore.disableActions}
<Button icon={IconMoreH} iconProps={{ size: 'medium' }} kind={'icon'} on:click={showContextMenu} />
<Button
id="btn-doc-title-open-more"
icon={IconMoreH}
iconProps={{ size: 'medium' }}
kind={'icon'}
on:click={showContextMenu}
/>
{#each actions as action}
<Button
icon={action.icon}