fix(proxies): shrink the plain group icon so it no longer fills the header

Changelog: Smaller icons in icon-only group headers
This commit is contained in:
chen08209
2026-09-28 16:07:53 +08:00
parent 1e9955dec6
commit 786a6abca9
+5 -3
View File
@@ -448,17 +448,19 @@ class _GroupIcon extends ConsumerWidget {
},
),
ProxiesIconStyle.plain => Container(
margin: const EdgeInsets.only(right: 8),
margin: const EdgeInsets.only(left: 2, right: 10),
child: LayoutBuilder(
builder: (_, constraints) {
return IconTheme.merge(
data: IconThemeData(size: constraints.maxHeight - 8.ap),
data: IconThemeData(size: constraints.maxHeight - 16.ap),
child: CommonTargetIcon(src: src),
);
},
),
),
ProxiesIconStyle.hidden => Container(),
// Lines the title up with the proxy card names below, which sit at the
// row inset plus the card padding.
ProxiesIconStyle.hidden => const SizedBox(width: 4),
};
}
}