mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 22:07:55 -06:00
feat: Allow empty document titles, fix saved view routes not being accessible
This commit is contained in:
@@ -111,7 +111,7 @@ class DocumentDetailedItem extends DocumentItem {
|
||||
],
|
||||
).paddedLTRB(8, 8, 8, 4),
|
||||
Text(
|
||||
document.title ?? '-',
|
||||
document.title.isEmpty ? '-' : document.title,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
@@ -113,7 +113,7 @@ class DocumentGridItem extends DocumentItem {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 8.0),
|
||||
child: Text(
|
||||
document.title ?? '-',
|
||||
document.title.isEmpty ? '-' : document.title,
|
||||
maxLines: 3,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
|
||||
@@ -58,7 +58,7 @@ class DocumentListItem extends DocumentItem {
|
||||
],
|
||||
),
|
||||
Text(
|
||||
document.title ?? '-',
|
||||
document.title.isEmpty ? '-' : document.title,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user