Skip to content

Commit ad8a777

Browse files
committed
fix: resolve layout issues in global config header
- Added spacer item to push label and button to the right - Adjusted label alignment and removed left margin - Set button preferred width to 12px and added right margin - Removed button background to hide hover effect Log: resolve layout issues in global config header pms: BUG-350557
1 parent f6ae41b commit ad8a777

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/dcc-fcitx5configtool/qml/DetailConfigItem.qml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,24 @@ DccObject {
4242
page: RowLayout {
4343
id: headerRow
4444
height: 40
45-
46-
MouseArea {
47-
anchors.fill: parent
48-
onClicked: headerItem.expanded = !headerItem.expanded
49-
}
45+
spacing: 0
5046

5147
Label {
5248
Layout.leftMargin: 10
53-
Layout.alignment: Qt.AlignVCenter
49+
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
5450
font: D.DTK.fontManager.t6
5551
text: dccObj.displayName
5652
}
53+
MouseArea {
54+
anchors.fill: parent
55+
onClicked: headerItem.expanded = !headerItem.expanded
56+
}
5757
D.ToolButton {
5858
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
5959
icon.width: 12
6060
icon.height: 12
6161
icon.name: headerItem.expanded ? "arrow_ordinary_down" : "arrow_ordinary_right"
62+
background: Item {}
6263
onClicked: headerItem.expanded = !headerItem.expanded
6364
}
6465
}

0 commit comments

Comments
 (0)