Skip to content

Commit

Permalink
fix overflow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-lox committed Oct 19, 2024
1 parent 447a632 commit f5fa195
Showing 1 changed file with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,29 @@ class GraphProfile extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
_userMetadata.name ?? _userMetadata.pubkey,
style: const TextStyle(
fontWeight: FontWeight.bold,
SizedBox(
width: 170, // Set your desired max width
child: Text(
_userMetadata.name ?? _userMetadata.pubkey,
style: const TextStyle(
fontWeight: FontWeight.bold,
),
overflow: TextOverflow.ellipsis,
),
),
const SizedBox(
height: 5,
),
Text(
_userMetadata.nip05 ?? '',
style: const TextStyle(
fontSize: 12,
SizedBox(
width: 170, // Set your desired max width
child: Text(
_userMetadata.nip05 ?? '',
style: const TextStyle(
fontSize: 12,
),
overflow: TextOverflow.ellipsis,
),
),
)
],
)
],
Expand Down

0 comments on commit f5fa195

Please sign in to comment.