From 95bc325e854fd92d3d4b505706047b8d570320ea Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Wed, 3 May 2023 10:11:16 +0800 Subject: [PATCH] fix: text overflow on time in event card (#2434) --- .../calendar/presentation/calendar_day.dart | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart index 963d26fbd0..32994cc06a 100644 --- a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart +++ b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart @@ -122,17 +122,24 @@ class CalendarDayCard extends StatelessWidget { child: Padding( padding: const EdgeInsets.symmetric(vertical: 2), child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - FlowyText.regular( - cellData.date, - fontSize: 10, - color: Theme.of(context).hintColor, + Flexible( + flex: 3, + child: FlowyText.regular( + cellData.date, + fontSize: 10, + color: Theme.of(context).hintColor, + overflow: TextOverflow.ellipsis, + ), ), - const Spacer(), - FlowyText.regular( - cellData.time, - fontSize: 10, - color: Theme.of(context).hintColor, + Flexible( + child: FlowyText.regular( + cellData.time, + fontSize: 10, + color: Theme.of(context).hintColor, + overflow: TextOverflow.ellipsis, + ), ) ], ),