Center PDF title and improve code/list formatting

- Centered note title in PDF exports for better visual balance
- Increased inline code font size from 0.9em to 1.1em for better readability
- Removed paragraph margins inside list items to fix spacing issues
This commit is contained in:
drelich
2026-03-17 15:54:55 +01:00
parent 89c161f2f3
commit db7daa81a3
2 changed files with 6 additions and 1 deletions

View File

@@ -167,6 +167,7 @@ export function NoteEditor({ note, onUpdateNote, fontSize, onUnsavedChanges }: N
titleElement.style.fontSize = '24px'; titleElement.style.fontSize = '24px';
titleElement.style.fontWeight = 'bold'; titleElement.style.fontWeight = 'bold';
titleElement.style.color = '#000000'; titleElement.style.color = '#000000';
titleElement.style.textAlign = 'center';
container.appendChild(titleElement); container.appendChild(titleElement);
// Clone and add content // Clone and add content

View File

@@ -116,7 +116,7 @@ code {
padding: 0.125rem 0.25rem; padding: 0.125rem 0.25rem;
border-radius: 0.25rem; border-radius: 0.25rem;
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
font-size: 0.9em; font-size: 1.1em;
color: #1f2937; color: #1f2937;
} }
@@ -169,6 +169,10 @@ code {
color: #111827; color: #111827;
} }
.ProseMirror li p {
margin: 0;
}
.dark .ProseMirror li { .dark .ProseMirror li {
color: #f3f4f6; color: #f3f4f6;
} }