fix: text overflow on time in event card (#2434)

This commit is contained in:
Richard Shiue 2023-05-03 10:11:16 +08:00 committed by GitHub
parent d5b70c842b
commit 95bc325e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
),
)
],
),