Skip to content

Commit f8c4aad

Browse files
committed
all_channels: Restrict channel name to one line
Previously, long name could span multiple lines when the system font size was large, causing the row height to become insconsistent with other items. Limiting the name to a single line ensures consistent row height, similar to how it's done on the Channel Page. Fixes #1914
1 parent c1ff25e commit f8c4aad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/widgets/all_channels.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class AllChannelsListEntry extends StatelessWidget {
112112
iconDataForStream(channel)),
113113
Expanded(
114114
child: Text(
115+
maxLines: 1,
116+
overflow: TextOverflow.ellipsis,
115117
style: TextStyle(
116118
color: designVariables.textMessage,
117119
fontSize: 17,

0 commit comments

Comments
 (0)