fix: show AI assistant button for all note types in card view toolbar
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 43s

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Sepehr Ramezani
2026-05-01 17:08:31 +02:00
parent 8ee77956e8
commit bd4dd0e9eb

View File

@@ -926,7 +926,7 @@ export function NoteInput({
{/* ── Toolbar ── */}
<div className="flex items-center justify-between border-t border-border/30 px-3 py-2 gap-2">
<TooltipProvider>
<div className="flex items-center gap-0.5 flex-nowrap overflow-hidden flex-1 min-w-0">
<div className="flex items-center gap-0.5 flex-nowrap flex-1 min-w-0">
<Tooltip><TooltipTrigger asChild>
<Button variant="ghost" size="icon" className={cn('h-8 w-8', currentReminder && 'text-primary')} onClick={handleReminderOpen}>
@@ -945,7 +945,7 @@ export function NoteInput({
</TooltipTrigger><TooltipContent>{showMarkdownPreview ? t('general.edit') : t('general.preview')}</TooltipContent></Tooltip>
)}
{type === 'text' && aiAssistantEnabled && (
{aiAssistantEnabled && (
<Tooltip><TooltipTrigger asChild>
<Button variant="ghost" size="sm"
className={cn('h-8 gap-1.5 px-2 text-xs font-medium transition-colors shrink-0', aiOpen && 'bg-primary/10 text-primary')}