From 6f4503b5212a31f3ef453904382ad5ff66867414 Mon Sep 17 00:00:00 2001 From: Sergej Lopatkin Date: Mon, 2 Feb 2026 22:11:04 +0100 Subject: [PATCH] Enhances floating generate box UX - Adds tooltips on hover for buttons of the generate box - Replaces the message square icon with a sliders icon for the instruction mode toggle. - Adds a tooltip to the instruction mode toggle button. - Updates the placeholder text for the input field. --- .../Generation/FloatingGenerateBox.tsx | 72 +++++++++++-------- 1 file changed, 43 insertions(+), 29 deletions(-) diff --git a/app/src/components/Generation/FloatingGenerateBox.tsx b/app/src/components/Generation/FloatingGenerateBox.tsx index b020a81f..a8d556a6 100644 --- a/app/src/components/Generation/FloatingGenerateBox.tsx +++ b/app/src/components/Generation/FloatingGenerateBox.tsx @@ -1,6 +1,6 @@ import { useMatchRoute } from '@tanstack/react-router'; import { AnimatePresence, motion } from 'framer-motion'; -import { Loader2, MessageSquare, Sparkles } from 'lucide-react'; +import { Loader2, SlidersHorizontal, Sparkles } from 'lucide-react'; import { useEffect, useRef, useState } from 'react'; import { Button } from '@/components/ui/button'; import { Form, FormControl, FormField, FormItem, FormMessage } from '@/components/ui/form'; @@ -187,7 +187,7 @@ export function FloatingGenerateBox({ }} >
@@ -274,7 +274,7 @@ export function FloatingGenerateBox({ field.ref(node); } }} - placeholder="Add delivery instructions..." + placeholder="e.g. very happy and excited" className="resize-none bg-transparent border-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:outline-none focus:ring-0 outline-none ring-0 rounded-2xl text-sm placeholder:text-muted-foreground/60 w-full" style={{ minHeight: isExpanded ? '100px' : '32px', @@ -294,18 +294,27 @@ export function FloatingGenerateBox({
- +
+ + + {isPending + ? 'Generating...' + : !selectedProfileId + ? 'Select a voice profile first' + : 'Generate speech'} + +
{isExpanded && ( - +
+ + + Fine tune instructions + +
)}