Commit 2d900146e09ab9adae2485061c25dbfbd7afc630

Authored by 常守达
1 parent 0276a586

fix(today): 日期过长

@@ -490,7 +490,9 @@ class TodayTabBody extends StatelessWidget { @@ -490,7 +490,9 @@ class TodayTabBody extends StatelessWidget {
490 return context.l10n.yesterday; 490 return context.l10n.yesterday;
491 } 491 }
492 if (isSameDay(selectedDay, today.subtract(const Duration(days: 2)))) { 492 if (isSameDay(selectedDay, today.subtract(const Duration(days: 2)))) {
493 - return l10n.theDayBeforeYesterday; 493 + if (context.l10n.theDayBeforeYesterday.length <= 10) {
  494 + return context.l10n.theDayBeforeYesterday;
  495 + }
494 } 496 }
495 final locale = Localizations.localeOf(context).toString(); 497 final locale = Localizations.localeOf(context).toString();
496 if (selectedDay.year == today.year) { 498 if (selectedDay.year == today.year) {