style(ui): família visual de IA local

This commit is contained in:
evandro committed 2026-11-16 00:42:44 -03:00
1 parent f0b7db8c12
commit 07b0eaadca
62 files changed
+918 -853

No files matched your search

+19 -19
View File
@@ -232,11 +232,11 @@ export default function SettingsPage() {
<TitleBar />
<div className="flex-1 overflow-y-auto">
<div className="container mx-auto py-4 sm:py-6 md:py-8 px-3 sm:px-4 md:px-6 max-w-4xl w-full overflow-x-hidden">
<div className="mb-4 sm:mb-6">
<div className="mb-6">
<div className="flex items-start justify-between gap-3">
<div className="flex-1 min-w-0">
<h1 className="text-2xl sm:text-3xl font-bold truncate">Configurações</h1>
<p className="text-muted-foreground mt-1 sm:mt-2 text-sm sm:text-base">
<h1 className="text-2xl font-semibold tracking-tight truncate">Configurações</h1>
<p className="text-muted-foreground mt-1 text-sm">
Gerencie as preferências do OllaHub
</p>
</div>
@@ -244,7 +244,7 @@ export default function SettingsPage() {
variant="ghost"
size="icon"
onClick={() => router.push('/chat')}
className="rounded-lg shrink-0"
className="shrink-0 text-muted-foreground hover:text-foreground"
title="Fechar configurações"
>
<X className="w-5 h-5" />
@@ -252,24 +252,24 @@ export default function SettingsPage() {
</div>
</div>
<Tabs defaultValue="overview" className="space-y-4 sm:space-y-6">
<TabsList className="grid w-full grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-1 sm:gap-2 h-auto">
<TabsTrigger value="overview" className="text-xs sm:text-sm px-2 sm:px-3 py-1.5 sm:py-2 truncate">
<Tabs defaultValue="overview" className="space-y-6">
<TabsList className="grid w-full grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-1 h-auto">
<TabsTrigger value="overview" className="px-3 py-2 truncate">
Visão Geral
</TabsTrigger>
<TabsTrigger value="general" className="text-xs sm:text-sm px-2 sm:px-3 py-1.5 sm:py-2 truncate">
<TabsTrigger value="general" className="px-3 py-2 truncate">
General
</TabsTrigger>
<TabsTrigger value="web" className="text-xs sm:text-sm px-2 sm:px-3 py-1.5 sm:py-2 truncate">
<TabsTrigger value="web" className="px-3 py-2 truncate">
Web Search
</TabsTrigger>
<TabsTrigger value="sources" className="text-xs sm:text-sm px-2 sm:px-3 py-1.5 sm:py-2 truncate">
<TabsTrigger value="sources" className="px-3 py-2 truncate">
Sources
</TabsTrigger>
<TabsTrigger value="tasks" className="text-xs sm:text-sm px-2 sm:px-3 py-1.5 sm:py-2 truncate">
<TabsTrigger value="tasks" className="px-3 py-2 truncate">
Tasks
</TabsTrigger>
<TabsTrigger value="system" className="text-xs sm:text-sm px-2 sm:px-3 py-1.5 sm:py-2 truncate">
<TabsTrigger value="system" className="px-3 py-2 truncate">
System
</TabsTrigger>
</TabsList>
@@ -316,11 +316,11 @@ export default function SettingsPage() {
className="shrink-0"
>
{isCheckingConnection ? (
<Loader2 className="w-4 h-4 animate-spin" />
<Loader2 className="w-4 h-4 animate-spin text-primary" />
) : connectionStatus === 'success' ? (
<CheckCircle2 className="w-4 h-4 text-green-500" />
<CheckCircle2 className="w-4 h-4 text-success" />
) : connectionStatus === 'error' ? (
<XCircle className="w-4 h-4 text-red-500" />
<XCircle className="w-4 h-4 text-destructive" />
) : (
'Verificar'
)}
@@ -561,7 +561,7 @@ export default function SettingsPage() {
{settings.webSearch.engineOrder.map((engine, index) => (
<div
key={engine}
className="flex items-center justify-between p-2 rounded-md hover:bg-muted/50 transition-colors"
className="flex items-center justify-between p-2 rounded-md hover:bg-hover transition-colors duration-150"
>
<div className="flex items-center gap-2">
<Badge variant="outline" className="font-mono text-xs">
@@ -819,7 +819,7 @@ export default function SettingsPage() {
};
return (
<Card key={category.id} className={category.enabled ? 'border-primary' : ''}>
<Card key={category.id} className={category.enabled ? 'border-foreground/30' : ''}>
<CardContent className="pt-4 sm:pt-6">
<div className="flex flex-col sm:flex-row items-start justify-between gap-3 sm:gap-0">
<div className="flex items-start gap-2 sm:gap-3 flex-1 min-w-0 w-full">
@@ -1044,7 +1044,7 @@ export default function SettingsPage() {
</CardHeader>
<CardContent>
<div className="relative">
<div className="bg-black text-green-400 font-mono text-xs p-4 rounded-lg h-[400px] overflow-y-auto">
<div className="bg-background border text-foreground font-mono text-xs p-4 rounded-md h-[400px] overflow-y-auto">
{isLoadingLogs ? (
<div className="flex items-center gap-2 text-muted-foreground">
<Loader2 className="w-4 h-4 animate-spin" />
@@ -1138,7 +1138,7 @@ export default function SettingsPage() {
{updater.updateAvailable && (
<div className="flex items-center justify-between text-sm">
<span className="text-muted-foreground">Nova Versão Disponível</span>
<span className="font-mono font-medium text-primary">
<span className="font-mono font-semibold text-foreground">
{updater.updateInfo?.version}
</span>
</div>