fix: custom headers with sockets

This commit is contained in:
cogwheel0
2025-09-08 13:18:38 +05:30
parent 3ba3e34938
commit 1df69b0b65
3 changed files with 57 additions and 8 deletions

View File

@@ -674,11 +674,19 @@ class _ServerConnectionPageState extends ConsumerState<ServerConnectionPage> {
),
child: Row(
children: [
ConduitBadge(
text: entry.key,
backgroundColor: context.conduitTheme.buttonPrimary.withValues(alpha: 0.1),
textColor: context.conduitTheme.buttonPrimary,
isCompact: true,
// Make the header badge flexible and truncate long text
Flexible(
fit: FlexFit.loose,
child: ConduitBadge(
text: entry.key,
backgroundColor:
context.conduitTheme.buttonPrimary.withValues(alpha: 0.1),
textColor: context.conduitTheme.buttonPrimary,
isCompact: true,
maxLines: 1,
overflow: TextOverflow.ellipsis,
softWrap: false,
),
),
const SizedBox(width: Spacing.md),
Expanded(