From 60012b81c0836bb63941bb38ac931a1198080709 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Thu, 29 Jan 2026 19:32:05 -0800 Subject: [PATCH] Refactor ProfileForm and SampleList components for improved UI and functionality - Updated button styles in ProfileForm for better visual consistency and user experience. - Replaced Pencil icon with Edit in SampleList for clearer action representation. - Introduced CircleButton component for action buttons in SampleList, enhancing UI responsiveness and clarity. - Improved layout and hover effects for action buttons in SampleList to streamline user interactions. --- .../components/VoiceProfiles/ProfileForm.tsx | 2 +- .../components/VoiceProfiles/SampleList.tsx | 29 +++++++------------ 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/app/src/components/VoiceProfiles/ProfileForm.tsx b/app/src/components/VoiceProfiles/ProfileForm.tsx index 4606eadb..f7a84e15 100644 --- a/app/src/components/VoiceProfiles/ProfileForm.tsx +++ b/app/src/components/VoiceProfiles/ProfileForm.tsx @@ -810,7 +810,7 @@ export function ProfileForm() { type="button" onClick={handleRemoveAvatar} disabled={deleteAvatar.isPending} - className="absolute bottom-0 right-0 h-6 w-6 rounded-full bg-destructive text-destructive-foreground flex items-center justify-center hover:bg-destructive/90 transition-colors shadow-sm" + className="absolute bottom-0 right-0 h-6 w-6 rounded-full bg-background/60 backdrop-blur-sm text-muted-foreground flex items-center justify-center hover:bg-background/80 hover:text-foreground transition-colors shadow-sm border border-border/50" > diff --git a/app/src/components/VoiceProfiles/SampleList.tsx b/app/src/components/VoiceProfiles/SampleList.tsx index bc17295d..de848737 100644 --- a/app/src/components/VoiceProfiles/SampleList.tsx +++ b/app/src/components/VoiceProfiles/SampleList.tsx @@ -1,6 +1,7 @@ -import { Plus, Trash2, Play, Pencil, Check, X, Volume2, Pause } from 'lucide-react'; +import { Plus, Trash2, Play, Edit, Check, X, Volume2, Pause } from 'lucide-react'; import { useEffect, useRef, useState } from 'react'; import { Button } from '@/components/ui/button'; +import { CircleButton } from '@/components/ui/circle-button'; import { Textarea } from '@/components/ui/textarea'; import { Slider } from '@/components/ui/slider'; import { useToast } from '@/components/ui/use-toast'; @@ -212,7 +213,7 @@ export function SampleList({ profileId }: SampleListProps) { /* Edit Mode */
- + Editing transcription