Skip to content

Commit d53b107

Browse files
vilpessoaclaude
andauthored
feat(visual-edits): aplica visual neon azul no botão Visual Edits (#83)
Mantém tamanho (h-6, px-2, text-[11px]) e ícone (MousePointerClick h-3.5 w-3.5) do botão no painel de preview, adicionando: - borda arredondada (rounded-full) com cor azul translúcida - linhas neon gradiente no topo (hover) e na base (sutil) - estado ativo em azul sólido Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8bf9416 commit d53b107

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/ViewportToolbar.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ export function ViewportToolbar({
3535
onClick={onToggleVisualEdits}
3636
aria-pressed={visualEditsEnabled}
3737
className={cn(
38-
'inline-flex h-6 items-center gap-1.5 rounded-md px-2 text-[11px] font-medium transition-colors',
38+
'relative group inline-flex h-6 items-center gap-1.5 rounded-full border px-2 text-[11px] font-medium text-center transition-all duration-200',
3939
visualEditsEnabled
40-
? 'bg-primary/15 text-primary'
41-
: 'text-muted-foreground hover:bg-accent hover:text-foreground',
40+
? 'bg-blue-500 hover:bg-blue-600 text-white border-transparent hover:border-foreground/50'
41+
: 'bg-blue-500/5 hover:bg-blue-500/0 border-blue-500/20 text-foreground',
4242
)}
4343
>
44+
<span className="pointer-events-none absolute inset-x-0 inset-y-0 mx-auto block h-px w-3/4 bg-gradient-to-r from-transparent via-blue-600 to-transparent opacity-0 transition-all duration-500 ease-in-out group-hover:opacity-100 dark:via-blue-500" />
4445
<MousePointerClick className="h-3.5 w-3.5" />
4546
<span className="hidden sm:inline">Visual Edits</span>
47+
<span className="pointer-events-none absolute inset-x-0 -bottom-px mx-auto block h-px w-3/4 bg-gradient-to-r from-transparent via-blue-600 to-transparent transition-all duration-500 ease-in-out group-hover:opacity-30 dark:via-blue-500" />
4648
</button>
4749
</div>
4850
);

0 commit comments

Comments
 (0)