fix: calendar event editor field name overflow (#3877)

This commit is contained in:
Richard Shiue 2023-11-06 13:03:32 +08:00 committed by GitHub
parent 85af82acbe
commit eb54cf99d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ class EventPropertyList extends StatelessWidget {
textStyle: Theme.of(context) textStyle: Theme.of(context)
.textTheme .textTheme
.bodyMedium .bodyMedium
?.copyWith(fontSize: 11), ?.copyWith(fontSize: 11, overflow: TextOverflow.ellipsis),
autofocus: true, autofocus: true,
useRoundedBorder: true, useRoundedBorder: true,
), ),
@ -213,10 +213,13 @@ class _PropertyCellState extends State<PropertyCell> {
size: const Size.square(14), size: const Size.square(14),
), ),
const HSpace(4.0), const HSpace(4.0),
FlowyText.regular( Expanded(
widget.cellContext.fieldInfo.name, child: FlowyText.regular(
color: Theme.of(context).hintColor, widget.cellContext.fieldInfo.name,
fontSize: 11, color: Theme.of(context).hintColor,
overflow: TextOverflow.ellipsis,
fontSize: 11,
),
), ),
], ],
), ),