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

+10 -10
View File
@@ -45,10 +45,10 @@ export function SourcesDisplay({ sources, className }: SourcesDisplayProps) {
};
return (
<div className={cn("px-6 py-4 border-t border-muted/50", className)}>
<div className={cn("px-6 py-4 border-t", className)}>
<div className="flex items-center gap-2 mb-3">
<Globe className="w-4 h-4 text-muted-foreground/60" />
<p className="text-xs font-medium text-muted-foreground/80">
<Globe className="w-4 h-4 text-muted-foreground" />
<p className="text-xs font-medium text-muted-foreground">
Fontes consultadas ({sources.length}):
</p>
</div>
@@ -65,7 +65,7 @@ export function SourcesDisplay({ sources, className }: SourcesDisplayProps) {
href={source.url}
target="_blank"
rel="noopener noreferrer"
className="group flex items-center gap-2 px-3 py-2 rounded-lg bg-muted/30 hover:bg-muted/50 border border-transparent hover:border-muted transition-all flex-shrink-0"
className="group flex items-center gap-2 px-3 py-2 rounded-md border bg-surface hover:bg-hover transition-colors duration-150 flex-shrink-0"
onClick={(e) => {
// Permitir que o botão de copiar funcione sem navegar
if ((e.target as HTMLElement).closest('button')) {
@@ -77,19 +77,19 @@ export function SourcesDisplay({ sources, className }: SourcesDisplayProps) {
<img
src={faviconUrl}
alt=""
className="w-4 h-4 rounded flex-shrink-0"
className="w-4 h-4 rounded-sm flex-shrink-0"
onError={(e) => {
(e.target as HTMLImageElement).style.display = 'none';
}}
/>
) : (
<Globe className="w-4 h-4 text-muted-foreground/60 flex-shrink-0" />
<Globe className="w-4 h-4 text-muted-foreground flex-shrink-0" />
)}
<div className="min-w-0">
<div className="text-xs font-medium truncate max-w-[140px] text-foreground/90">
<div className="text-xs font-medium truncate max-w-[140px] text-foreground">
{source.title || domain}
</div>
<div className="text-[10px] text-muted-foreground truncate">
<div className="text-xs text-muted-foreground truncate">
{domain}
</div>
</div>
@@ -99,12 +99,12 @@ export function SourcesDisplay({ sources, className }: SourcesDisplayProps) {
e.stopPropagation();
copyToClipboard(source.url, idx);
}}
className="ml-1 p-1 rounded hover:bg-muted/50 transition-colors opacity-0 group-hover:opacity-100"
className="ml-1 p-1 rounded-sm hover:bg-background transition-opacity duration-150 opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
title="Copiar URL"
aria-label="Copiar URL"
>
{isCopied ? (
<Check className="w-3 h-3 text-green-600 dark:text-green-400" />
<Check className="w-3 h-3 text-success" />
) : (
<Copy className="w-3 h-3 text-muted-foreground" />
)}