mirror of
https://github.com/Anil-matcha/Open-Generative-AI.git
synced 2026-05-07 01:17:18 +00:00
fix: use margin-auto centering for Cinema Studio prompt bar
Replace translate-based centering (md:left-1/2 md:-translate-x-1/2) with margin-auto approach (md:left-0 md:right-0 md:mx-auto) to fix prompt bar not being centered when rendered inside Tailwind v4 host app. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
268102ab46
commit
29cff36eef
1 changed files with 1 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ export default function CinemaStudio({ apiKey, onGenerationComplete, historyItem
|
|||
|
||||
{/* ── 3. Floating Prompt Bar ── */}
|
||||
<div
|
||||
className={`absolute bottom-8 left-4 right-4 md:left-1/2 md:-translate-x-1/2 md:w-full md:max-w-4xl z-30 transition-all duration-700 ${showCanvas ? 'opacity-0 pointer-events-none translate-y-20' : 'opacity-100 translate-y-0'}`}
|
||||
className={`absolute bottom-8 left-4 right-4 md:left-0 md:right-0 md:mx-auto md:max-w-4xl z-30 transition-all duration-700 ${showCanvas ? 'opacity-0 pointer-events-none translate-y-20' : 'opacity-100 translate-y-0'}`}
|
||||
>
|
||||
<div className="bg-[#1a1a1a] border border-white/10 rounded-[2rem] p-4 flex justify-between shadow-3xl items-end relative">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue