Update EditChannel panel, Attributes (#1735)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2022-05-13 13:41:30 +07:00
committed by GitHub
parent e91c5d073a
commit 5fea32fd6f
23 changed files with 564 additions and 260 deletions
@@ -75,7 +75,7 @@
async function onSpaceEdit (): Promise<void> {
if (space === undefined) return
const editor = await getEditor(space._class)
showPanel(editor ?? plugin.component.SpacePanel, space._id, space._class, 'right')
showPanel(editor ?? plugin.component.SpacePanel, space._id, space._class, 'content')
}
function updateViewlets (viewlets: WithLookup<Viewlet>[]) {
@@ -60,12 +60,14 @@
}}
>
<svelte:fragment slot="title">
<div class="antiTitle icon-wrapper">
<div class="wrapped-icon">
{#if clazz.icon}<Icon icon={clazz.icon} size={'medium'} />{/if}
{#if clazz}
<div class="antiTitle icon-wrapper">
<div class="wrapped-icon">
{#if clazz.icon}<Icon icon={clazz.icon} size={'medium'} />{/if}
</div>
<span class="wrapped-title"><Label label={clazz.label} /></span>
</div>
<span class="wrapped-title"><Label label={clazz.label} /></span>
</div>
{/if}
</svelte:fragment>
<Scroller>