feat(ui): panneau repliable, carnets plus lisibles et accueil plus clair
Harmonise la liste des notes et l’éditeur (titres, dates, retour), rend la saisie rapide et les raccourcis de l’accueil utilisables sur téléphone, et conserve le panneau latéral repliable.
This commit is contained in:
@@ -32,7 +32,7 @@ import { useLabelsQuery } from '@/lib/query-hooks'
|
||||
import { getAISettings } from '@/app/actions/ai-settings'
|
||||
import { generateNoteIllustrationSvg } from '@/app/actions/note-illustration'
|
||||
import { LabelBadge } from '@/components/label-badge'
|
||||
import { formatAbsoluteDateLocalized } from '@/lib/utils/format-localized-date'
|
||||
import { formatNoteCalendarDate } from '@/lib/utils/format-localized-date'
|
||||
import { motion } from 'motion/react'
|
||||
import { MoveToNotebookPicker } from '@/components/move-to-notebook-picker'
|
||||
import { toast } from 'sonner'
|
||||
@@ -515,15 +515,7 @@ export function NotesListViews({
|
||||
}
|
||||
|
||||
function formatGridCardDate(date: Date | string, language: string): string {
|
||||
const d = typeof date === 'string' ? new Date(date) : date
|
||||
const locale = language === 'fr' ? fr : enUS
|
||||
if (language === 'fa') {
|
||||
return formatAbsoluteDateLocalized(d, language, 'd MMM yyyy', locale)
|
||||
}
|
||||
const month = d.toLocaleDateString('en-US', { month: 'short', timeZone: 'UTC' })
|
||||
const day = d.getUTCDate()
|
||||
const year = d.getUTCFullYear()
|
||||
return `${month.toUpperCase()} ${day}, ${year}`
|
||||
return formatNoteCalendarDate(date, language)
|
||||
}
|
||||
|
||||
type NotesSelection = {
|
||||
|
||||
Reference in New Issue
Block a user