UI Stabilization: Global color theme updates (#75B2D6), AI Assistant styling refactor, and navigation fixes
This commit is contained in:
@@ -486,34 +486,34 @@ export function NoteHistoryModal({
|
||||
{enabled && !isLoading && entries.length >= 2 && (
|
||||
<div className="flex items-center justify-end border-t border-border/60 px-5 py-2.5">
|
||||
<div className="flex items-center gap-1 rounded-lg border border-border/60 p-0.5">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => { setViewMode('preview'); setDiffLeftId(null); setDiffRightId(null) }}
|
||||
className={cn(
|
||||
'rounded-md px-2.5 py-1 text-xs font-medium transition-colors',
|
||||
viewMode === 'preview' ? 'bg-primary text-primary-foreground' : 'text-muted-foreground hover:text-foreground'
|
||||
)}
|
||||
>
|
||||
{t('notes.history') || 'Historique'}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
setViewMode('diff')
|
||||
if (!diffLeftId && entries.length >= 2) {
|
||||
setDiffLeftId(entries[1].id)
|
||||
setDiffRightId(entries[0].id)
|
||||
}
|
||||
}}
|
||||
className={cn(
|
||||
'rounded-md px-2.5 py-1 text-xs font-medium transition-colors inline-flex items-center gap-1',
|
||||
viewMode === 'diff' ? 'bg-primary text-primary-foreground' : 'text-muted-foreground hover:text-foreground'
|
||||
)}
|
||||
>
|
||||
<GitCompare className="h-3 w-3" />
|
||||
{t('notes.compareVersions') || 'Comparer'}
|
||||
</button>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => { setViewMode('preview'); setDiffLeftId(null); setDiffRightId(null) }}
|
||||
className={cn(
|
||||
'rounded-md px-2.5 py-1 text-xs font-medium transition-colors',
|
||||
viewMode === 'preview' ? 'bg-primary text-primary-foreground' : 'text-muted-foreground hover:text-foreground'
|
||||
)}
|
||||
>
|
||||
{t('notes.history') || 'Historique'}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
setViewMode('diff')
|
||||
if (!diffLeftId && entries.length >= 2) {
|
||||
setDiffLeftId(entries[1].id)
|
||||
setDiffRightId(entries[0].id)
|
||||
}
|
||||
}}
|
||||
className={cn(
|
||||
'rounded-md px-2.5 py-1 text-xs font-medium transition-colors inline-flex items-center gap-1',
|
||||
viewMode === 'diff' ? 'bg-primary text-primary-foreground' : 'text-muted-foreground hover:text-foreground'
|
||||
)}
|
||||
>
|
||||
<GitCompare className="h-3 w-3" />
|
||||
{t('notes.compareVersions') || 'Comparer'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user