Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

polish(create): viewer+gallery same height, icons stand alone with a purple glow

purple7fb3ec2af2e1
diff --git a/src/components/create/experimental/Composer.tsx b/src/components/create/experimental/Composer.tsx
index c8a6f2d9..e2ae8171 100644
--- a/src/components/create/experimental/Composer.tsx
+++ b/src/components/create/experimental/Composer.tsx
@@ -93,7 +93,11 @@ export function Composer({ onOpenAdvanced }: Props) {
creditsOk
return (
- <div className="shrink-0 px-4 pb-4 pt-2">
+ // A stable min-height (bottom-anchored) so the prompt window occupies the
+ // same vertical space on every tab — utility modes (no QuickControls / no
+ // prompt) don't shrink it. That keeps the viewer + gallery row above it the
+ // exact SAME height across all tabs, not just within one.
+ <div className="shrink-0 px-4 pb-4 pt-2 min-h-[192px] flex flex-col justify-end">
<div className="mx-auto w-full max-w-[760px] space-y-2.5">
{!isUtility && <QuickControls />}
diff --git a/src/components/create/experimental/CreateExperimental.tsx b/src/components/create/experimental/CreateExperimental.tsx
index 3ceadc68..d77fe4d9 100644
--- a/src/components/create/experimental/CreateExperimental.tsx
+++ b/src/components/create/experimental/CreateExperimental.tsx
@@ -91,7 +91,7 @@ function CreateExperimentalInner() {
}, [intent])
return (
- <div className="h-full w-full flex flex-col bg-white dark:bg-[#141414] text-gray-200 overflow-hidden">
+ <div className="relative h-full w-full flex flex-col bg-white dark:bg-[#141414] text-gray-200 overflow-hidden">
<IntentBar />
<AnimatePresence>
@@ -129,25 +129,26 @@ function CreateExperimentalInner() {
</div>
)}
- {/* Stage+Composer on the left, the Gallery bubble as a right rail —
- matched 1:1 with the web companion (the old bottom strip is gone). */}
+ {/* The viewer (Stage) and the Gallery bubble share ONE row, so they're
+ always the exact same height; the prompt window spans the full width
+ beneath them. (Previously the Gallery ran full-height alongside both the
+ viewer AND the composer, so it was taller than the viewer.) */}
<div className="flex-1 min-h-0 flex overflow-hidden">
- <div className="flex-1 min-w-0 relative flex flex-col">
- <Stage
- displayed={displayed}
- onOpenMaskEditor={() => setMaskOpen(true)}
- onEditResult={(it) => { void editResultWithMask(it) }}
- onFullscreen={(it) => setLightbox(it)}
- />
- <Composer onOpenAdvanced={() => setAdvancedOpen(true)} />
-
- <AdvancedDrawer open={advancedOpen} onClose={() => setAdvancedOpen(false)} />
- <MaskEditor open={maskOpen} onClose={() => setMaskOpen(false)} />
- </div>
-
+ <Stage
+ displayed={displayed}
+ onOpenMaskEditor={() => setMaskOpen(true)}
+ onEditResult={(it) => { void editResultWithMask(it) }}
+ onFullscreen={(it) => setLightbox(it)}
+ />
<CreatePanel open={panelOpen} onOpenChange={setPanelOpen} activeId={shownId} onSelect={openGalleryItem} />
</div>
+ {/* Prompt window — full width, beneath the viewer + gallery. */}
+ <Composer onOpenAdvanced={() => setAdvancedOpen(true)} />
+
+ <AdvancedDrawer open={advancedOpen} onClose={() => setAdvancedOpen(false)} />
+ <MaskEditor open={maskOpen} onClose={() => setMaskOpen(false)} />
+
<Lightbox item={lightbox} onClose={() => setLightbox(null)} />
<VhsInstallModal />
</div>
diff --git a/src/components/create/experimental/Stage.tsx b/src/components/create/experimental/Stage.tsx
index aab14abc..198a21d2 100644
--- a/src/components/create/experimental/Stage.tsx
+++ b/src/components/create/experimental/Stage.tsx
@@ -92,19 +92,28 @@ export function Stage({ displayed, onOpenMaskEditor, onEditResult, onFullscreen
}
return (
- <div className="flex-1 min-h-0 flex flex-col overflow-hidden">
- <AnimatePresence mode="wait">
- <motion.div
- key={intent + (isGenerating ? ':gen' : '')}
- initial={{ opacity: 0 }}
- animate={{ opacity: 1 }}
- exit={{ opacity: 0 }}
- transition={{ duration: 0.12 }}
- className="flex-1 min-h-0 flex flex-col"
- >
- {body}
- </motion.div>
- </AnimatePresence>
+ // The viewer canvas: ONE fixed, centred frame that is identical on every tab
+ // (Image / Edit / Cutout / Video) — same height and width — so switching
+ // modes no longer resizes or shifts the stage. It shares the Gallery bubble's
+ // surface + radius so the two read as a matched pair, and it sits in the same
+ // row as the Gallery (see CreateExperimental) so both are always equal height.
+ // Whatever the mode renders (empty state, dropzone, result, install card) is
+ // centred inside this frame.
+ <div className="flex-1 min-w-0 min-h-0 flex overflow-hidden p-2">
+ <div className="flex-1 min-w-0 rounded-xl bg-gray-50 dark:bg-[#1e1e1e] ring-1 ring-black/[0.04] dark:ring-white/[0.05] flex flex-col overflow-hidden relative">
+ <AnimatePresence mode="wait">
+ <motion.div
+ key={intent + (isGenerating ? ':gen' : '')}
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.12 }}
+ className="flex-1 min-h-0 flex flex-col"
+ >
+ {body}
+ </motion.div>
+ </AnimatePresence>
+ </div>
</div>
)
}
@@ -188,8 +197,10 @@ function InputSlot() {
drag ? 'border-blue-400 bg-blue-500/10' : 'border-white/10 bg-white/[0.02] hover:border-white/20',
)}
>
- {loading ? <Loader2 className="animate-spin text-gray-400" size={28} /> : (
- meta.id === 'removebg' ? <Scissors className="text-gray-500" size={28} strokeWidth={1.5} /> : <UploadCloud className="text-gray-500" size={28} strokeWidth={1.5} />
+ {loading ? <Loader2 className="animate-spin text-lu-accent" size={30} /> : (
+ meta.id === 'removebg'
+ ? <Scissors className="text-lu-accent drop-shadow-[0_0_7px_var(--color-lu-accent-ring)]" size={30} strokeWidth={1.5} />
+ : <UploadCloud className="text-lu-accent drop-shadow-[0_0_7px_var(--color-lu-accent-ring)]" size={30} strokeWidth={1.5} />
)}
<div className="text-center">
<div className="t-title text-gray-300">{meta.id === 'removebg' ? 'Drop an image to cut out' : meta.id === 'animate' ? 'Drop an image to animate' : 'Drop an image to edit'}</div>
diff --git a/src/components/create/ui/EmptyState.tsx b/src/components/create/ui/EmptyState.tsx
index c596d539..ac81bd45 100644
--- a/src/components/create/ui/EmptyState.tsx
+++ b/src/components/create/ui/EmptyState.tsx
@@ -1,7 +1,6 @@
import { motion } from 'framer-motion'
import type { LucideIcon } from 'lucide-react'
-import { cn } from './cn'
import { Button } from './Button'
interface Action {
@@ -35,11 +34,19 @@ export function EmptyState({ icon: Icon, logoSrc, title, description, action, se
{logoSrc ? (
<img src={logoSrc} alt="" className="mx-auto h-14 w-14 object-contain opacity-90 select-none" draggable={false} />
) : (
- <div className={cn(
- 'mx-auto w-14 h-14 rounded-2xl flex items-center justify-center',
- tone === 'accent' ? 'bg-white/[0.06] text-gray-300' : 'bg-white/[0.04] text-gray-500',
- )}>
- <Icon size={24} strokeWidth={1.5} />
+ // David 2026-07-13: no gray bubble behind the icon — the SVG stands on
+ // its own, lifted only by a soft purple accent glow (a gentle, slow
+ // breathe so it reads as intentional, not a hard animation).
+ <div className="relative mx-auto w-16 h-16 flex items-center justify-center">
+ <motion.span
+ aria-hidden
+ className="absolute rounded-full bg-lu-accent blur-2xl"
+ style={{ width: '3.5rem', height: '3.5rem' }}
+ initial={{ opacity: 0.28, scale: 0.9 }}
+ animate={{ opacity: [0.28, tone === 'accent' ? 0.6 : 0.42, 0.28], scale: [0.9, 1.06, 0.9] }}
+ transition={{ duration: 3.2, repeat: Infinity, ease: 'easeInOut' }}
+ />
+ <Icon size={36} strokeWidth={1.5} className="relative text-lu-accent drop-shadow-[0_0_8px_var(--color-lu-accent-ring)]" />
</div>
)}
<div className="space-y-1.5">