Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b8f6367e9 | ||
|
|
8129730d43 |
@@ -134,17 +134,17 @@ Control {
|
||||
// ==================== 分区1:接口信息 ====================
|
||||
// 三行对称结构:行1 接口名(居中),行2 IPv4 地址行,行3 IPv6 地址行
|
||||
// 地址行用固定宽度标签 + 地址 + 复制图标,两行结构对称不会错位
|
||||
// 外层 Item 固定高度 + 内层 ColumnLayout anchors.centerIn:
|
||||
// 无 IP 地址时内容在区域内垂直居中,避免单行内容贴顶导致网卡名偏上
|
||||
// 固定区域高度(按最多 3 行:接口名 16px + IPv4 16px + IPv6 16px + 间距 8px ≈ 56px):
|
||||
// 无论有无 IP 地址,区域高度恒定,弹窗整体高度不随网卡切换跳动;
|
||||
// 内容用 anchors.top 顶部对齐,接口名行始终在顶部同一垂直位置
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
// preferredHeight 40 为无 IP 时的最小高度;有 IP/IPv6 时内容自然撑高
|
||||
Layout.preferredHeight: Math.max(40, ifaceCol.implicitHeight)
|
||||
Layout.preferredHeight: 60
|
||||
visible: popup.ready
|
||||
|
||||
ColumnLayout {
|
||||
id: ifaceCol
|
||||
anchors.centerIn: parent
|
||||
anchors.top: parent.top
|
||||
width: parent.width
|
||||
spacing: 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user