Skip to content

Commit

Permalink
EZQMS-278: adjust view inline comments UI
Browse files Browse the repository at this point in the history
Signed-off-by: Anna No <anna.no@xored.com>
  • Loading branch information
annano committed Oct 18, 2023
1 parent 780f48d commit 8b36280
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/text-editor/src/components/ReferenceInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -236,7 +236,7 @@
.text-input {
min-height: 2.75rem;
padding: 0.625rem 0.75rem;
padding: 0.125rem 0.75rem;
}
.buttons-panel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Attachment> = new Map()
export let loading = false
Expand Down Expand Up @@ -283,6 +284,7 @@
{iconSend}
{labelSend}
{showSend}
{showActions}
{loading}
{boundary}
extraActions={[
Expand Down
17 changes: 13 additions & 4 deletions plugins/chunter-resources/src/components/Thread.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
let showAll = false
let total = 0
let showActions = false
let showSend = false
$: updateQuery(_id)
$: updateThreadQuery(_id, showAll)
Expand Down Expand Up @@ -149,8 +152,8 @@
let loading = false
</script>

<div class="flex-col ml-4 mt-4 flex-no-shrink">
{#if showHeader && parent}
{#if showHeader && parent}
<div class="flex-col ml-4 mt-4 flex-no-shrink">
{#await getChannel(parent.space) then channel}
{#if channel?._class === plugin.class.Channel}
<ChannelPresenter value={channel} />
Expand All @@ -164,8 +167,8 @@
<Label label={plugin.string.AndYou} params={{ participants: participants.length }} />
{/await}
</div>
{/if}
</div>
</div>
{/if}
<div class="flex-col content mt-2 flex-no-shrink">
{#if parent}
<MsgView message={parent} thread {savedAttachmentsIds} />
Expand Down Expand Up @@ -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
/>
</div>
Expand Down

0 comments on commit 8b36280

Please sign in to comment.