chore: fix audio time going to two lines when font size is large

This commit is contained in:
ggurdin 2025-06-13 11:35:04 -04:00
parent ecf6113f95
commit 19d3b3fd7c
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
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,