diff --git a/src/vk_parser_app/templates/editor_post.html b/src/vk_parser_app/templates/editor_post.html index 065d606..fe1a179 100644 --- a/src/vk_parser_app/templates/editor_post.html +++ b/src/vk_parser_app/templates/editor_post.html @@ -124,8 +124,11 @@ + x-data="{ resize() { $el.style.height = 'auto'; $el.style.height = $el.scrollHeight + 'px' } }" + x-init="$nextTick(() => resize())" + @input="resize()" + class="textarea w-full font-sans text-sm leading-relaxed resize-none overflow-hidden p-3 bg-app-bg border border-app-border min-h-48" + placeholder="Напишите идеальный пост здесь...">{{ p.review_text.rstrip() }}