style(app): the profile page's link a row alone, without a Column around it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
86f221d02f
commit
3eb757c921
1 changed files with 25 additions and 30 deletions
|
|
@ -733,38 +733,33 @@ class const _ProfilePage({required final String url}) extends StatelessWidget {
|
|||
final theme = Theme.of(context);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
child: Row(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
l10n.publicProfilePage(
|
||||
url.replaceFirst(RegExp('^https?://'), ''),
|
||||
),
|
||||
style: theme.textTheme.bodyMedium,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
l10n.publicProfilePage(
|
||||
url.replaceFirst(RegExp('^https?://'), ''),
|
||||
),
|
||||
// What linking back does, behind its question mark (decided
|
||||
// 3 Nov 2026).
|
||||
HelpButton(l10n.publicProfileVerifyHint),
|
||||
IconButton(
|
||||
tooltip: l10n.publicProfilePageCopy,
|
||||
icon: const Icon(LucideIcons.copy, size: 18),
|
||||
onPressed: () async {
|
||||
final messenger = ScaffoldMessenger.of(context);
|
||||
await Clipboard.setData(ClipboardData(text: url));
|
||||
messenger
|
||||
..hideCurrentSnackBar()
|
||||
..showSnackBar(
|
||||
SnackBar(content: Text(l10n.publicProfilePageCopied)),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
style: theme.textTheme.bodyMedium,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
// What linking back does, behind its question mark (decided
|
||||
// 3 Nov 2026).
|
||||
HelpButton(l10n.publicProfileVerifyHint),
|
||||
IconButton(
|
||||
tooltip: l10n.publicProfilePageCopy,
|
||||
icon: const Icon(LucideIcons.copy, size: 18),
|
||||
onPressed: () async {
|
||||
final messenger = ScaffoldMessenger.of(context);
|
||||
await Clipboard.setData(ClipboardData(text: url));
|
||||
messenger
|
||||
..hideCurrentSnackBar()
|
||||
..showSnackBar(
|
||||
SnackBar(content: Text(l10n.publicProfilePageCopied)),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue