Merge branch 'filenametolong' into 'main'

filename is too long and over the widget

See merge request famedly/fluffychat!1103
This commit is contained in:
Krille 2023-05-16 16:55:19 +00:00
commit 7dde6250e1

View file

@ -37,14 +37,17 @@ class MessageDownloadContent extends StatelessWidget {
color: textColor, color: textColor,
), ),
const SizedBox(width: 16), const SizedBox(width: 16),
Text( Flexible(
filename, child: Text(
maxLines: 1, filename,
style: TextStyle( maxLines: 1,
color: textColor, style: TextStyle(
fontWeight: FontWeight.bold, color: textColor,
fontWeight: FontWeight.bold,
),
overflow: TextOverflow.ellipsis,
), ),
), )
], ],
), ),
), ),