feat: Allow empty document titles, fix saved view routes not being accessible

This commit is contained in:
Anton Stubenbord
2023-10-10 16:28:10 +02:00
parent 2e32f0c015
commit 7b9c31a010
19 changed files with 278 additions and 300 deletions

View File

@@ -20,7 +20,7 @@ class DeleteDocumentConfirmationDialog extends StatelessWidget {
),
const SizedBox(height: 16),
Text(
document.title ?? document.originalFileName ?? '-',
document.title.isEmpty ? '(no title)' : document.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(