Skip to content

Commit db3f57e

Browse files
committed
fix: text overflow with Prefs.simplifiedHomeLayout
1 parent c2271c5 commit db3f57e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/components/home/preview_card.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,15 @@ class _PreviewCardState extends State<PreviewCard> {
157157
),
158158
],
159159
),
160-
Center(
160+
Flexible(
161161
child: Padding(
162162
padding: const EdgeInsets.all(8),
163-
child: Text(widget.filePath
164-
.substring(widget.filePath.lastIndexOf('/') + 1)),
163+
child: Text(
164+
widget.filePath
165+
.substring(widget.filePath.lastIndexOf('/') + 1),
166+
maxLines: 2,
167+
overflow: TextOverflow.ellipsis,
168+
),
165169
),
166170
),
167171
],

0 commit comments

Comments
 (0)