Limit file name and type display to a single line for better layout consistency

This commit is contained in:
Leon Bösche
2026-01-31 23:12:44 +01:00
parent 43776b123c
commit 75a796a43d

View File

@@ -1268,6 +1268,7 @@ class _FileExplorerState extends State<FileExplorer>
padding: const EdgeInsets.only(bottom: 2, right: 6),
child: Text(
p.extension(file.name).toUpperCase(),
maxLines: 1,
style: const TextStyle(
color: Colors.black,
fontSize: 6.25,
@@ -1289,6 +1290,7 @@ class _FileExplorerState extends State<FileExplorer>
file.type == FileType.folder
? 'Folder'
: '${_getFileTypeLabel(file)} - ${_formatFileSize(file.size)}',
maxLines: 1,
style: const TextStyle(color: AppTheme.secondaryText),
),
trailing: Row(