Fit editor final text height
This commit is contained in:
@@ -124,8 +124,11 @@
|
||||
<!-- Edit Area (Auto resize textarea) -->
|
||||
<label class="block text-xs font-bold text-app-textMuted mb-2 uppercase tracking-wider">Финальный текст</label>
|
||||
<textarea name="final_text"
|
||||
class="textarea w-full font-sans text-sm leading-relaxed resize-y overflow-y-auto p-3 bg-app-bg border border-app-border h-48 md:h-56"
|
||||
placeholder="Напишите идеальный пост здесь...">{{ p.review_text }}</textarea>
|
||||
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() }}</textarea>
|
||||
|
||||
<!-- Meta Inputs row -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">
|
||||
|
||||
Reference in New Issue
Block a user