UBERF-7747 Fix ref input max size (#6201)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-07-31 15:57:40 +07:00 committed by GitHub
parent ce807a4a28
commit 6bd7d8bf9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -323,7 +323,7 @@
}
</script>
<div class="no-print" bind:this={refContainer}>
<div class="flex-col no-print" bind:this={refContainer}>
<input
bind:this={inputFile}
disabled={inputFile == null}
@ -336,7 +336,7 @@
/>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="container"
class="flex-col"
on:dragover|preventDefault={() => {}}
on:dragleave={() => {}}
on:drop|preventDefault|stopPropagation={fileDrop}

View File

@ -783,7 +783,7 @@
{/if}
</div>
{#if object}
<div class="ref-input">
<div class="ref-input flex-col">
<ActivityExtensionComponent
kind="input"
{extensions}
@ -800,7 +800,9 @@
}
.ref-input {
flex-shrink: 0;
margin: 1.25rem 1rem 1rem;
max-height: 18.75rem;
}
.overlay {

View File

@ -28,7 +28,7 @@
import { createEventDispatcher } from 'svelte'
import { FocusPosition } from '@tiptap/core'
import { EditorView } from '@tiptap/pm/view'
import textEditor, { RefAction, TextEditorHandler, TextFormatCategory } from '@hcengineering/text-editor'
import textEditor, { RefAction, TextEditorHandler } from '@hcengineering/text-editor'
import { Completion } from '../Completion'
import TextEditor from './TextEditor.svelte'
@ -246,13 +246,13 @@
}
.text-input {
max-height: 18.75rem;
overflow: auto;
min-height: 2.75rem;
padding: 0.125rem 0.75rem;
}
.buttons-panel {
flex-shrink: 0;
padding: 0.325rem 0.75rem;
}
</style>