misc: provider icons, tooltip in chat toolbar, conditionally display the "Open Skills Folder" button and update "Documentation" to "Website" in settings (#60)

This commit is contained in:
Felix
2026-02-12 11:11:28 +08:00
committed by GitHub
parent 2ae4201639
commit 8ab1b3af36
26 changed files with 206 additions and 82 deletions

View File

@@ -5,7 +5,7 @@
* Supports: file picker, clipboard paste, drag & drop.
*/
import { useState, useRef, useEffect, useCallback } from 'react';
import { Send, Square, ImagePlus, X } from 'lucide-react';
import { Send, Square, X } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
@@ -200,18 +200,7 @@ export function ChatInput({ onSend, onStop, disabled = false, sending = false }:
{/* Input Row */}
<div className={`flex items-end gap-2 ${dragOver ? 'ring-2 ring-primary rounded-lg' : ''}`}>
{/* Image Upload Button */}
<Button
type="button"
variant="ghost"
size="icon"
className="shrink-0 h-[44px] w-[44px] text-muted-foreground hover:text-foreground"
onClick={() => fileInputRef.current?.click()}
disabled={disabled}
title="Attach image"
>
<ImagePlus className="h-5 w-5" />
</Button>
<input
ref={fileInputRef}
type="file"