fix: name overflow on stream page

This commit is contained in:
2025-05-27 13:53:33 +01:00
parent e9062f0265
commit 0a474a1ca7
2 changed files with 7 additions and 5 deletions

View File

@ -159,7 +159,6 @@ class _StreamPage extends State<StreamPage> with RouteAware {
stream.info.host,
children: [
NotificationsButtonWidget(stream: widget.stream),
Spacer(),
BasicButton(
Row(
children: [Icon(Icons.bolt, size: 14), Text(t.zap.button_zap)],

View File

@ -65,6 +65,7 @@ class ProfileNameWidget extends StatelessWidget {
final inner = Text(
ProfileNameWidget.nameFromProfile(profile),
style: style,
overflow: TextOverflow.ellipsis,
);
if (linkToProfile ?? true) {
return GestureDetector(
@ -130,10 +131,12 @@ class ProfileWidget extends StatelessWidget {
children: [
AvatarWidget(profile: profile, size: size),
if (showName ?? true)
ProfileNameWidget(
profile: profile,
key: key,
linkToProfile: linkToProfile,
Expanded(
child: ProfileNameWidget(
profile: profile,
key: key,
linkToProfile: linkToProfile,
),
),
...(children ?? []),
],