fix:ipv6背景色

This commit is contained in:
2026-07-19 14:03:14 +08:00
parent 903e0f1801
commit 6bc1a3e3fb
+1 -1
View File
@@ -340,7 +340,7 @@ AppletItem {
// 网卡名 + IP 地址卡片背景 // 网卡名 + IP 地址卡片背景
Rectangle { Rectangle {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: 180 Layout.preferredWidth: 300
// 有 IPv6 时增高以容纳第三行;无 IPv6 时保持原 40px // 有 IPv6 时增高以容纳第三行;无 IPv6 时保持原 40px
Layout.preferredHeight: root.ipv6Address ? 54 : 40 Layout.preferredHeight: root.ipv6Address ? 54 : 40
color: root.cardBackground color: root.cardBackground