Skip to content

Commit

Permalink
fix: 推荐页作者超长限制、行高限制
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Feb 22, 2024
1 parent dff44c5 commit 43e0e4a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/common/widgets/video_card_v.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ class VideoCardV extends StatelessWidget {
),
),
if (videoItem.duration > 0)
PBadge(
bottom: 6,
right: 7,
size: 'small',
type: 'gray',
text: Utils.timeFormat(videoItem.duration),
)
PBadge(
bottom: 6,
right: 7,
size: 'small',
type: 'gray',
text: Utils.timeFormat(videoItem.duration),
)
],
);
}),
Expand All @@ -181,9 +181,7 @@ class VideoCardV extends StatelessWidget {

class VideoContent extends StatelessWidget {
final dynamic videoItem;
const VideoContent(
{Key? key, required this.videoItem})
: super(key: key);
const VideoContent({Key? key, required this.videoItem}) : super(key: key);
@override
Widget build(BuildContext context) {
return Expanded(
Expand All @@ -196,18 +194,19 @@ class VideoContent extends StatelessWidget {
Row(
children: [
Expanded(
child: Text(
videoItem.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
child: Text(videoItem.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
height: 1.45,
)),
),
],
),
const SizedBox(height: 2),
VideoStat(
videoItem: videoItem,
),
const SizedBox(height: 2),
VideoStat(
videoItem: videoItem,
),
Row(
children: [
if (videoItem.goto == 'bangumi') ...[
Expand Down Expand Up @@ -250,6 +249,7 @@ class VideoContent extends StatelessWidget {
child: Text(
videoItem.owner.name,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize:
Theme.of(context).textTheme.labelMedium!.fontSize,
Expand Down

0 comments on commit 43e0e4a

Please sign in to comment.