mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 03:58:09 +00:00
fix: name overflow on stream page
This commit is contained in:
@ -159,7 +159,6 @@ class _StreamPage extends State<StreamPage> with RouteAware {
|
|||||||
stream.info.host,
|
stream.info.host,
|
||||||
children: [
|
children: [
|
||||||
NotificationsButtonWidget(stream: widget.stream),
|
NotificationsButtonWidget(stream: widget.stream),
|
||||||
Spacer(),
|
|
||||||
BasicButton(
|
BasicButton(
|
||||||
Row(
|
Row(
|
||||||
children: [Icon(Icons.bolt, size: 14), Text(t.zap.button_zap)],
|
children: [Icon(Icons.bolt, size: 14), Text(t.zap.button_zap)],
|
||||||
|
@ -65,6 +65,7 @@ class ProfileNameWidget extends StatelessWidget {
|
|||||||
final inner = Text(
|
final inner = Text(
|
||||||
ProfileNameWidget.nameFromProfile(profile),
|
ProfileNameWidget.nameFromProfile(profile),
|
||||||
style: style,
|
style: style,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
);
|
);
|
||||||
if (linkToProfile ?? true) {
|
if (linkToProfile ?? true) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
@ -130,10 +131,12 @@ class ProfileWidget extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
AvatarWidget(profile: profile, size: size),
|
AvatarWidget(profile: profile, size: size),
|
||||||
if (showName ?? true)
|
if (showName ?? true)
|
||||||
ProfileNameWidget(
|
Expanded(
|
||||||
profile: profile,
|
child: ProfileNameWidget(
|
||||||
key: key,
|
profile: profile,
|
||||||
linkToProfile: linkToProfile,
|
key: key,
|
||||||
|
linkToProfile: linkToProfile,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
...(children ?? []),
|
...(children ?? []),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user