diff --git a/packages/text-editor/src/components/ReferenceInput.svelte b/packages/text-editor/src/components/ReferenceInput.svelte index 5b1d912f83a..95b764a4d3c 100644 --- a/packages/text-editor/src/components/ReferenceInput.svelte +++ b/packages/text-editor/src/components/ReferenceInput.svelte @@ -218,7 +218,7 @@ .ref-container { display: flex; flex-direction: column; - min-height: 4.5rem; + min-height: 2.5rem; border: 0.0625rem solid var(--theme-refinput-border); border-radius: 0.375rem; @@ -236,7 +236,7 @@ .text-input { min-height: 2.75rem; - padding: 0.625rem 0.75rem; + padding: 0.125rem 0.75rem; } .buttons-panel { diff --git a/plugins/attachment-resources/src/components/AttachmentRefInput.svelte b/plugins/attachment-resources/src/components/AttachmentRefInput.svelte index 9f9fed7f633..49cd329c342 100644 --- a/plugins/attachment-resources/src/components/AttachmentRefInput.svelte +++ b/plugins/attachment-resources/src/components/AttachmentRefInput.svelte @@ -31,6 +31,7 @@ export let iconSend: Asset | AnySvelteComponent | undefined = undefined export let labelSend: IntlString | undefined = undefined export let showSend = true + export let showActions = true export let shouldSaveDraft: boolean = false export let attachments: IdMap = new Map() export let loading = false @@ -283,6 +284,7 @@ {iconSend} {labelSend} {showSend} + {showActions} {loading} {boundary} extraActions={[ diff --git a/plugins/chunter-resources/src/components/Thread.svelte b/plugins/chunter-resources/src/components/Thread.svelte index 3899fc38ea8..00aca811d87 100644 --- a/plugins/chunter-resources/src/components/Thread.svelte +++ b/plugins/chunter-resources/src/components/Thread.svelte @@ -49,6 +49,9 @@ let showAll = false let total = 0 + let showActions = false + let showSend = false + $: updateQuery(_id) $: updateThreadQuery(_id, showAll) @@ -149,8 +152,8 @@ let loading = false -
- {#if showHeader && parent} +{#if showHeader && parent} +
{#await getChannel(parent.space) then channel} {#if channel?._class === plugin.class.Channel} @@ -164,8 +167,8 @@
- {/if} -
+ +{/if}
{#if parent} @@ -193,7 +196,13 @@ _class={plugin.class.ThreadMessage} objectId={commentId} placeholder={chunter.string.AddCommentPlaceholder} + {showActions} + {showSend} on:message={onMessage} + on:focus={() => { + showSend = true + showActions = true + }} bind:loading />