Fix editor desktop layout regression
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<div class="flex flex-col xl:flex-row gap-6" x-data="{ filtersOpen: false }">
|
<div class="flex flex-col xl:flex-row gap-6" x-data="{ filtersOpen: false }">
|
||||||
<!-- Sidebar Filters -->
|
<!-- Sidebar Filters -->
|
||||||
<aside class="w-full flex-shrink-0 transition-all duration-200" :class="filtersOpen ? 'xl:w-72' : 'xl:w-12'">
|
<aside class="w-full flex-shrink-0 transition-all duration-200" :class="filtersOpen ? 'xl:w-72' : 'xl:w-16'">
|
||||||
<div class="card p-4 sticky top-6">
|
<div class="card sticky top-6" :class="filtersOpen ? 'p-4' : 'p-2'">
|
||||||
<button type="button" class="btn btn-ghost btn-icon w-full mb-0" @click="filtersOpen = !filtersOpen" :aria-expanded="filtersOpen.toString()" :title="filtersOpen ? 'Свернуть фильтры' : 'Развернуть фильтры'">
|
<button type="button" class="btn btn-ghost btn-icon w-10 h-10 mx-auto mb-0" @click="filtersOpen = !filtersOpen" :aria-expanded="filtersOpen.toString()" :title="filtersOpen ? 'Свернуть фильтры' : 'Развернуть фильтры'">
|
||||||
<i data-lucide="sliders-horizontal" class="w-5 h-5"></i>
|
<i data-lucide="sliders-horizontal" class="w-5 h-5"></i>
|
||||||
</button>
|
</button>
|
||||||
<form id="filter-form" hx-get="/editor" hx-target="#content-area" hx-push-url="true" hx-trigger="submit">
|
<form id="filter-form" hx-get="/editor" hx-target="#content-area" hx-push-url="true" hx-trigger="submit">
|
||||||
|
|||||||
@@ -124,10 +124,7 @@
|
|||||||
<!-- Edit Area (Auto resize textarea) -->
|
<!-- Edit Area (Auto resize textarea) -->
|
||||||
<label class="block text-xs font-bold text-app-textMuted mb-2 uppercase tracking-wider">Финальный текст</label>
|
<label class="block text-xs font-bold text-app-textMuted mb-2 uppercase tracking-wider">Финальный текст</label>
|
||||||
<textarea name="final_text"
|
<textarea name="final_text"
|
||||||
x-data="{ resize() { $el.style.height = 'auto'; $el.style.height = $el.scrollHeight + 'px' } }"
|
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"
|
||||||
x-init="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-[150px]"
|
|
||||||
placeholder="Напишите идеальный пост здесь...">{{ p.review_text }}</textarea>
|
placeholder="Напишите идеальный пост здесь...">{{ p.review_text }}</textarea>
|
||||||
|
|
||||||
<!-- Meta Inputs row -->
|
<!-- Meta Inputs row -->
|
||||||
|
|||||||
Reference in New Issue
Block a user