Improve textarea styles

This commit is contained in:
Alex Gleason committed 2025-09-13 19:17:36 -05:00
1 parent ef6642181e
commit 6935b343ae
2 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -119,7 +119,7 @@ export function ModelSelector({
role="combobox"
aria-expanded={open}
className={cn(
"h-8 justify-between text-xs border-0 bg-transparent hover:bg-transparent hover:text-foreground focus-visible:ring-0 focus-visible:ring-offset-0 text-muted-foreground text-right",
"h-8 p-0 gap-0.5 justify-between text-xs border-0 bg-transparent hover:bg-transparent hover:text-foreground focus-visible:ring-0 focus-visible:ring-offset-0 text-muted-foreground text-right",
className
)}
disabled={disabled}
@@ -127,7 +127,7 @@ export function ModelSelector({
<span className="w-full truncate">
{value || placeholder}
</span>
<ChevronDown className="ml-2 h-3 w-3 shrink-0 opacity-50" />
<ChevronDown className="size-3 shrink-0 opacity-50" />
</Button>
</PopoverTrigger>
<PopoverContent className="w-96 p-0" align="end">
+6 -6
View File
@@ -5,7 +5,7 @@ import { Textarea } from '@/components/ui/textarea';
import { Skeleton } from '@/components/ui/skeleton';
import { CircularProgress } from '@/components/ui/circular-progress';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
import { Send, Square, Loader2, ChevronDown } from 'lucide-react';
import { Square, Loader2, ChevronDown, ArrowUp } from 'lucide-react';
import { useAISettings } from '@/hooks/useAISettings';
import { useFS } from '@/hooks/useFS';
import { useCurrentUser } from '@/hooks/useCurrentUser';
@@ -463,7 +463,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
/>
{/* Bottom Controls Row */}
<div className="absolute bottom-2 left-2 right-2 flex items-center gap-2">
<div className="absolute bottom-2 left-2 right-2 flex items-center gap-4">
{/* Context Usage Wheel */}
{contextUsagePercentage >= 10 && currentModel?.contextLength && lastInputTokens > 0 && (
<TooltipProvider>
@@ -518,9 +518,9 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
onClick={stopGeneration}
size="sm"
variant="ghost"
className="h-8 w-8 rounded-lg p-0 hover:bg-muted"
className="size-8 rounded-full p-0 bg-foreground/10 [&_svg]:size-3.5 [&_svg]:fill-foreground hover:bg-foreground/20"
>
<Square className="h-4 w-4" />
<Square />
</Button>
) : (
<Button
@@ -528,9 +528,9 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
onMouseDown={handleFirstInteraction}
disabled={!input.trim() || !providerModel.trim()}
size="sm"
className="h-8 w-8 rounded-lg p-0"
className="size-8 [&_svg]:size-5 rounded-full p-0"
>
<Send className="h-4 w-4" />
<ArrowUp />
</Button>
)}
</div>