Skip to content

Commit 4bc3d6a

Browse files
committed
fix: Optimize UI display of the network module
log: Keep text field widths consistent pms: bug-337919
1 parent 05a74fa commit 4bc3d6a

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

dcc-network/qml/NetFileChooseEdit.qml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import org.deepin.dtk 1.0 as D
88

99
RowLayout {
1010
id: root
11+
implicitWidth: edit.implicitWidth
1112
property var dataItem
1213
property var nameFilters: [qsTr("All files (*)")]
1314
property alias placeholderText: edit.placeholderText
@@ -30,6 +31,7 @@ RowLayout {
3031
}
3132
D.LineEdit {
3233
id: edit
34+
Layout.preferredWidth: edit.implicitWidth - browseBtn.width - root.spacing
3335
onTextChanged: {
3436
if (!initialized) {
3537
return
@@ -50,10 +52,12 @@ RowLayout {
5052
}
5153
Component.onCompleted: initialized = true
5254
}
53-
NetButton {
54-
text: "..."
55-
onClicked: {
56-
fileDialog.createObject(this).open()
57-
}
58-
}
55+
// TEMP: 验证改动是否生效,去掉按钮
56+
NetButton {
57+
id: browseBtn
58+
text: "..."
59+
onClicked: {
60+
fileDialog.createObject(this).open()
61+
}
62+
}
5963
}

0 commit comments

Comments
 (0)