fix: simplify note-input toolbar by using compact mode for label, type selector, and ai button
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 45s

This commit is contained in:
2026-05-02 21:45:48 +02:00
parent dc5f6b77d9
commit bd5391e3f2
2 changed files with 9 additions and 10 deletions

View File

@@ -934,7 +934,7 @@ export function NoteInput({
</Button>
</TooltipTrigger><TooltipContent>{t('notes.remindMe')}</TooltipContent></Tooltip>
<NoteTypeSelector value={type} onChange={(newType) => { setType(newType); if (newType !== 'markdown') setShowMarkdownPreview(false) }} />
<NoteTypeSelector value={type} onChange={(newType) => { setType(newType); if (newType !== 'markdown') setShowMarkdownPreview(false) }} compact />
{type === 'markdown' && (
<Tooltip><TooltipTrigger asChild>
@@ -947,11 +947,10 @@ export function NoteInput({
{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')}
<Button variant="ghost" size="icon"
className={cn('h-8 w-8 transition-colors shrink-0', aiOpen && 'bg-primary/10 text-primary')}
onClick={() => setAiOpen(!aiOpen)}>
<Sparkles className="h-3.5 w-3.5" />
<span className="hidden sm:inline">IA Note</span>
<Sparkles className="h-4 w-4" />
</Button>
</TooltipTrigger><TooltipContent>Ouvrir IA Note</TooltipContent></Tooltip>
)}
@@ -974,7 +973,7 @@ export function NoteInput({
</Button>
</TooltipTrigger><TooltipContent>{t('notes.addLink')}</TooltipContent></Tooltip>
<LabelSelector selectedLabels={selectedLabels} onLabelsChange={setSelectedLabels} triggerLabel="" align="start" />
<LabelSelector selectedLabels={selectedLabels} onLabelsChange={setSelectedLabels} variant="compact" align="start" />
<DropdownMenu>
<Tooltip><TooltipTrigger asChild>