fix(ui): Fix text overflow when quoting a file

Fixes #261.
This commit is contained in:
PapaTutuWawa 2023-03-17 21:28:32 +01:00
parent 8f68292dfd
commit 9d0a84b317

View File

@ -113,24 +113,27 @@ class QuotedMediaBaseWidget extends StatelessWidget {
Row( Row(
children: [ children: [
child, child,
Padding( Expanded(
padding: const EdgeInsets.only(left: 8), child: Padding(
child: Column( padding: const EdgeInsets.only(left: 8),
mainAxisSize: MainAxisSize.min, child: Column(
crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min,
children: [ crossAxisAlignment: CrossAxisAlignment.start,
QuoteSenderText( children: [
sender: message.sender, QuoteSenderText(
resetQuoteNotNull: resetQuote != null, sender: message.sender,
sent: sent, resetQuoteNotNull: resetQuote != null,
), sent: sent,
Text(
text,
style: TextStyle(
color: getQuoteTextColor(context, resetQuote != null),
), ),
), Text(
], text,
style: TextStyle(
color: getQuoteTextColor(context, resetQuote != null),
),
overflow: TextOverflow.ellipsis,
),
],
),
), ),
), ),
], ],