feat: icon-only toolbar, versioning fixes, history modal, PanelRight repositioning
- Toolbar: remove text labels from all icon buttons (AI, Save, Preview, Convert) all buttons now icon-only with title tooltip for accessibility - Toolbar: reposition PanelRight (info panel toggle) to far right after three-dot menu - Versioning: decouple getNoteHistory/restoreNoteVersion from global userAISettings.noteHistory now checks note.historyEnabled directly — unblocks manual per-note history - Versioning: add 'Sauvegarder cette version' button in Versions tab of info panel calls commitNoteHistory with visual feedback (spinner → success state) - note-document-info-panel: import commitNoteHistory, add isSavingVersion state - notes.ts: fix double guard that silently blocked all history operations
This commit is contained in:
@@ -34,6 +34,19 @@
|
||||
--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Font family overrides — toggled on <html> by ThemeInitializer */
|
||||
.font-system {
|
||||
--font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
}
|
||||
|
||||
.font-playfair {
|
||||
--font-sans: var(--font-memento-serif), ui-serif, Georgia, 'Times New Roman', serif;
|
||||
}
|
||||
|
||||
.font-jetbrains {
|
||||
--font-sans: var(--font-jetbrains-mono), 'JetBrains Mono', ui-monospace, monospace;
|
||||
}
|
||||
|
||||
/* Custom scrollbar for better aesthetics - Architectural Minimalist */
|
||||
::-webkit-scrollbar {
|
||||
width: 3px;
|
||||
@@ -93,6 +106,9 @@
|
||||
@utility win11-shadow-hover {
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
}
|
||||
@utility editor-body {
|
||||
font-size: var(--editor-body-size, 16px);
|
||||
}
|
||||
|
||||
/* Architectural Grid — texture & navigation (réf. architectural-grid1) */
|
||||
.memento-paper-texture {
|
||||
@@ -269,7 +285,7 @@ html.dark .memento-active-nav {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-inter);
|
||||
--font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Monaco, Consolas, monospace;
|
||||
--font-mono: var(--font-jetbrains-mono), 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Monaco, Consolas, monospace;
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
@@ -423,7 +439,7 @@ html.dark {
|
||||
--secondary: #2d2d2d;
|
||||
--secondary-foreground: #ffffff;
|
||||
--muted: #2d2d2d;
|
||||
--muted-foreground: #9e9e9e;
|
||||
--muted-foreground: #a8a8a8;
|
||||
--accent: #383838;
|
||||
--accent-foreground: #ffffff;
|
||||
--destructive: #ff6b6b;
|
||||
@@ -435,7 +451,7 @@ html.dark {
|
||||
--chart-3: oklch(0.769 0.188 70.08);
|
||||
--chart-4: oklch(0.627 0.265 303.9);
|
||||
--chart-5: oklch(0.645 0.246 16.439);
|
||||
--sidebar: rgba(32, 32, 32, 0.75);
|
||||
--sidebar: #252525;
|
||||
--sidebar-foreground: #ffffff;
|
||||
--sidebar-primary: #d6d3d1;
|
||||
--sidebar-primary-foreground: #1c1917;
|
||||
@@ -991,6 +1007,11 @@ html.font-system * {
|
||||
font-size: var(--user-font-size, 16px);
|
||||
}
|
||||
|
||||
/* Editor body size — used for textarea and ProseMirror content */
|
||||
:root {
|
||||
--editor-body-size: var(--user-font-size, 16px);
|
||||
}
|
||||
|
||||
body {
|
||||
@apply text-foreground;
|
||||
background-color: var(--memento-desk);
|
||||
@@ -1778,3 +1799,25 @@ html.font-system * {
|
||||
font-size: 1.125rem;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
/* ─── OVERRIDE FINAL: Force editorial body text in fullPage using CSS var ──────── */
|
||||
/* Sets font-size on the container so TipTap inherits --editor-body-size */
|
||||
.fullpage-editor {
|
||||
font-size: var(--editor-body-size, 16px) !important;
|
||||
line-height: 1.85 !important;
|
||||
}
|
||||
/* Also target TipTap's actual editable div directly */
|
||||
.fullpage-editor .tiptap,
|
||||
.fullpage-editor .tiptap p,
|
||||
.fullpage-editor .ProseMirror,
|
||||
.fullpage-editor .ProseMirror > p {
|
||||
font-size: var(--editor-body-size, 16px) !important;
|
||||
line-height: 1.85 !important;
|
||||
}
|
||||
/* Keep headings at their correct relative sizes */
|
||||
.fullpage-editor .tiptap h1,
|
||||
.fullpage-editor .ProseMirror h1 { font-size: 2.25rem !important; line-height: 1.25 !important; }
|
||||
.fullpage-editor .tiptap h2,
|
||||
.fullpage-editor .ProseMirror h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
|
||||
.fullpage-editor .tiptap h3,
|
||||
.fullpage-editor .ProseMirror h3 { font-size: 1.375rem !important; line-height: 1.4 !important; }
|
||||
|
||||
Reference in New Issue
Block a user