Merge pull request #3220 from pangeachat/fix-word-card-overflow

chore: fix overflow in word card text
This commit is contained in:
ggurdin 2025-06-24 14:21:01 -04:00 committed by GitHub
commit e2ccc9e4ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,15 +73,18 @@ class WordZoomWidget extends StatelessWidget {
),
),
),
Text(
token.text.content,
style: TextStyle(
fontSize: 32.0,
fontWeight: FontWeight.w600,
height: 1.2,
color: Theme.of(context).brightness == Brightness.light
? AppConfig.yellowDark
: AppConfig.yellowLight,
Flexible(
child: Text(
token.text.content,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 32.0,
fontWeight: FontWeight.w600,
height: 1.2,
color: Theme.of(context).brightness == Brightness.light
? AppConfig.yellowDark
: AppConfig.yellowLight,
),
),
),
ConstructXpWidget(