diff --git a/lib/community/community_view/class_details.dart b/lib/community/community_view/class_details.dart index f26498d2..7bd9251a 100644 --- a/lib/community/community_view/class_details.dart +++ b/lib/community/community_view/class_details.dart @@ -440,7 +440,7 @@ class _ClassDetails extends State with WidgetsBindingObserver { ) : Container( width: width, - height: height, + height:width / 7 * 5, )), if (isShowImg) GestureDetector( @@ -482,6 +482,7 @@ class _ClassDetails extends State with WidgetsBindingObserver { Widget anthology() { return Container( color: Colors.white, + height: 148.h, margin: EdgeInsets.only(bottom: 16), padding: EdgeInsets.all(16), child: Column( @@ -551,6 +552,8 @@ class _ClassDetails extends State with WidgetsBindingObserver { ), child: Text( chapterList?.name ?? chapterList.name ?? "", + overflow: TextOverflow.ellipsis, + maxLines: 2, style: TextStyle( fontSize: 12.sp, fontWeight: MyFontWeight.regular,