fix: 历史记录内容溢出

This commit is contained in:
guozhigq
2023-10-14 11:48:50 +08:00
parent 79f661e5da
commit 856d699fd7

View File

@ -297,7 +297,8 @@ class VideoContent extends StatelessWidget {
maxLines: videoItem.videos > 1 ? 1 : 2, maxLines: videoItem.videos > 1 ? 1 : 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
if (videoItem.showTitle != null) if (videoItem.showTitle != null) ...[
const SizedBox(height: 2),
Text( Text(
videoItem.showTitle, videoItem.showTitle,
textAlign: TextAlign.start, textAlign: TextAlign.start,
@ -305,21 +306,24 @@ class VideoContent extends StatelessWidget {
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize, fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Theme.of(context).colorScheme.outline), color: Theme.of(context).colorScheme.outline),
maxLines: 2, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
],
const Spacer(), const Spacer(),
Row( if (videoItem.authorName != '')
children: [ Row(
Text( children: [
videoItem.authorName, Text(
style: TextStyle( videoItem.authorName,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize, style: TextStyle(
color: Theme.of(context).colorScheme.outline, fontSize:
Theme.of(context).textTheme.labelMedium!.fontSize,
color: Theme.of(context).colorScheme.outline,
),
), ),
), ],
], ),
),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [