Skip to content

Commit 66c0a7c

Browse files
committed
refactor(feed_core): limit headline title to two lines
- Reduce maxLines from 3 to 2 in HeadlineTileImageStart - Reduce maxLines from 3 to 2 in HeadlineTileImageTop - Reduce maxLines from 3 to 2 in HeadlineTileTextOnly This change improves the consistency and readability of headline titles across different feed tile layouts.
1 parent 90b086c commit 66c0a7c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/shared/widgets/feed_core/headline_tile_image_start.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class HeadlineTileImageStart extends StatelessWidget {
107107
style: textTheme.titleMedium?.copyWith(
108108
fontWeight: FontWeight.w500,
109109
),
110-
maxLines: 3,
110+
maxLines: 2,
111111
overflow: TextOverflow.ellipsis,
112112
),
113113
],

lib/shared/widgets/feed_core/headline_tile_image_top.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class HeadlineTileImageTop extends StatelessWidget {
125125
style: textTheme.titleMedium?.copyWith(
126126
fontWeight: FontWeight.w500,
127127
),
128-
maxLines: 3,
128+
maxLines: 2,
129129
overflow: TextOverflow.ellipsis,
130130
),
131131
),

lib/shared/widgets/feed_core/headline_tile_text_only.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class HeadlineTileTextOnly extends StatelessWidget {
8080
style: textTheme.titleMedium?.copyWith(
8181
fontWeight: FontWeight.w500,
8282
),
83-
maxLines: 3,
83+
maxLines: 2,
8484
overflow: TextOverflow.ellipsis,
8585
),
8686
],

0 commit comments

Comments
 (0)