Merge pull request #3061 from pangeachat/3043-time-stamp-spans-two-lines-again

chore: fix audio time going to two lines when font size is large
This commit is contained in:
ggurdin 2025-06-13 11:35:33 -04:00 committed by GitHub
commit 3c8bc2642b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 8 deletions

View file

@ -554,16 +554,25 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
),
),
const SizedBox(width: 8),
SizedBox(
width: 36,
child: Text(
statusText,
style: TextStyle(
color: widget.color,
fontSize: 12,
),
// #Pangea
// SizedBox(
// width: 36,
// child: Text(
// statusText,
// style: TextStyle(
// color: widget.color,
// fontSize: 12,
// ),
// ),
// ),
Text(
statusText,
style: TextStyle(
color: widget.color,
fontSize: 12,
),
),
// Pangea#
const SizedBox(width: 8),
AnimatedCrossFade(
firstChild: Padding(

View file

@ -68,6 +68,9 @@ class ReplyContent extends StatelessWidget {
future: displayEvent.fetchSenderUser(),
builder: (context, snapshot) {
return Text(
// #Pangea
textScaler: TextScaler.noScaling,
// Pangea#
'${snapshot.data?.calcDisplayname() ?? displayEvent.senderFromMemoryOrFallback.calcDisplayname()}:',
maxLines: 1,
overflow: TextOverflow.ellipsis,
@ -85,6 +88,9 @@ class ReplyContent extends StatelessWidget {
},
),
Text(
// #Pangea
textScaler: TextScaler.noScaling,
// Pangea#
displayEvent.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)),
withSenderNamePrefix: false,

View file

@ -69,6 +69,9 @@ class _EditContent extends StatelessWidget {
),
Container(width: 15.0),
Text(
// #Pangea
textScaler: TextScaler.noScaling,
// Pangea#
event.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)),
withSenderNamePrefix: false,