fix: textarea 60vh, white header, sidebar corbeille+footer alignment, orphan var removed
This commit is contained in:
@@ -361,7 +361,7 @@ export function HomeClient({ initialNotes, initialSettings }: HomeClientProps) {
|
|||||||
<>
|
<>
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
'px-12 pt-12 pb-8 flex flex-col gap-6',
|
'px-12 pt-12 pb-8 flex flex-col gap-6',
|
||||||
isEditorialMode ? 'sticky top-0 bg-background/80 backdrop-blur-md z-30' : ''
|
isEditorialMode ? 'sticky top-0 bg-white/80 dark:bg-zinc-950/80 backdrop-blur-md z-30' : ''
|
||||||
)}>
|
)}>
|
||||||
<div className="flex justify-between items-start">
|
<div className="flex justify-between items-start">
|
||||||
<h1 className="font-memento-serif text-4xl font-medium tracking-tight text-foreground leading-tight pr-12">
|
<h1 className="font-memento-serif text-4xl font-medium tracking-tight text-foreground leading-tight pr-12">
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false }
|
|||||||
// ── fullPage mode: editorial layout (fidèle au prototype) ──
|
// ── fullPage mode: editorial layout (fidèle au prototype) ──
|
||||||
if (fullPage) {
|
if (fullPage) {
|
||||||
const notebookName = notebooks.find(nb => nb.id === note.notebookId)?.name || null
|
const notebookName = notebooks.find(nb => nb.id === note.notebookId)?.name || null
|
||||||
const plainFirstSentence = content.replace(/<[^>]+>/g, ' ').replace(/\s+/g, ' ').trim().split(/[.!?]/)[0]
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -841,7 +841,7 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false }
|
|||||||
onFocus={() => setShowMarkdownPreview(false)}
|
onFocus={() => setShowMarkdownPreview(false)}
|
||||||
onChange={(e) => { setContent(e.target.value); setIsDirty(true) }}
|
onChange={(e) => { setContent(e.target.value); setIsDirty(true) }}
|
||||||
disabled={readOnly}
|
disabled={readOnly}
|
||||||
className="w-full min-h-[400px] border-0 outline-none px-0 bg-transparent text-lg leading-relaxed font-light resize-none placeholder:text-foreground/20 text-foreground/80"
|
className="w-full min-h-[60vh] border-0 outline-none px-0 bg-transparent text-lg leading-relaxed font-light resize-none placeholder:text-foreground/20 text-foreground/80"
|
||||||
/>
|
/>
|
||||||
{noteType === 'markdown' && content && !readOnly && (
|
{noteType === 'markdown' && content && !readOnly && (
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
Archive,
|
Archive,
|
||||||
MessageSquare,
|
MessageSquare,
|
||||||
Sparkles,
|
Sparkles,
|
||||||
|
Trash2,
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import { useLanguage } from '@/lib/i18n'
|
import { useLanguage } from '@/lib/i18n'
|
||||||
import { useNoteRefreshOptional } from '@/context/NoteRefreshContext'
|
import { useNoteRefreshOptional } from '@/context/NoteRefreshContext'
|
||||||
@@ -430,24 +431,34 @@ export function Sidebar({ className, user }: { className?: string; user?: any })
|
|||||||
|
|
||||||
{/* ── Footer ── */}
|
{/* ── Footer ── */}
|
||||||
<div className="pt-4 p-5 border-t border-border space-y-1">
|
<div className="pt-4 p-5 border-t border-border space-y-1">
|
||||||
{/* Notification bell */}
|
{/* Notifications */}
|
||||||
<div className="flex items-center gap-3 px-4 py-2">
|
<Link
|
||||||
|
href="/notifications"
|
||||||
|
className="flex items-center gap-3 px-4 py-2 text-[13px] text-muted-foreground hover:text-foreground transition-colors font-medium rounded-lg hover:bg-white/30"
|
||||||
|
>
|
||||||
<NotificationPanel />
|
<NotificationPanel />
|
||||||
<span className="text-[13px] text-muted-foreground font-medium">{t('notification.notifications') || 'Notifications'}</span>
|
<span>{t('notification.notifications') || 'Notifications'}</span>
|
||||||
</div>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
href="/archive"
|
href="/archive"
|
||||||
className="flex items-center gap-3 px-4 py-2 text-[13px] text-muted-foreground hover:text-foreground transition-colors font-medium rounded-lg hover:bg-white/30"
|
className="flex items-center gap-3 px-4 py-2 text-[13px] text-muted-foreground hover:text-foreground transition-colors font-medium rounded-lg hover:bg-white/30"
|
||||||
>
|
>
|
||||||
<Archive size={16} />
|
<Archive size={16} />
|
||||||
<span>{t('sidebar.archive') || 'Archive'}</span>
|
<span>{t('sidebar.archive') || 'Archives'}</span>
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
href="/trash"
|
||||||
|
className="flex items-center gap-3 px-4 py-2 text-[13px] text-muted-foreground hover:text-foreground transition-colors font-medium rounded-lg hover:bg-white/30"
|
||||||
|
>
|
||||||
|
<Trash2 size={16} />
|
||||||
|
<span>{t('sidebar.trash') || 'Corbeille'}</span>
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
href="/settings"
|
href="/settings"
|
||||||
className="flex items-center gap-3 px-4 py-2 text-[13px] text-muted-foreground hover:text-foreground transition-colors font-medium rounded-lg hover:bg-white/30"
|
className="flex items-center gap-3 px-4 py-2 text-[13px] text-muted-foreground hover:text-foreground transition-colors font-medium rounded-lg hover:bg-white/30"
|
||||||
>
|
>
|
||||||
<Settings size={16} />
|
<Settings size={16} />
|
||||||
<span>{t('nav.settings') || 'Settings'}</span>
|
<span>{t('nav.settings') || 'Paramètres'}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
Reference in New Issue
Block a user