mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
fixed size & button save
This commit is contained in:
@@ -177,7 +177,8 @@ PageType {
|
|||||||
Layout.bottomMargin: 8
|
Layout.bottomMargin: 8
|
||||||
Layout.leftMargin: 16
|
Layout.leftMargin: 16
|
||||||
Layout.rightMargin: 16
|
Layout.rightMargin: 16
|
||||||
visible: listView.enabled && XrayConfigModel.hasUnsavedChanges
|
// Show Save immediately while user edits port, even before focus loss.
|
||||||
|
visible: listView.enabled && (XrayConfigModel.hasUnsavedChanges || textFieldWithHeaderType.textField.text !== port)
|
||||||
enabled: visible && textFieldWithHeaderType.errorText === ""
|
enabled: visible && textFieldWithHeaderType.errorText === ""
|
||||||
text: qsTr("Save")
|
text: qsTr("Save")
|
||||||
onClicked: function() {
|
onClicked: function() {
|
||||||
|
|||||||
@@ -312,9 +312,8 @@ PageType {
|
|||||||
|
|
||||||
topPadding: 8
|
topPadding: 8
|
||||||
bottomPadding: 8 + PageController.safeAreaBottomMargin
|
bottomPadding: 8 + PageController.safeAreaBottomMargin
|
||||||
leftPadding: 24
|
leftPadding: 96
|
||||||
rightPadding: 24
|
rightPadding: 96
|
||||||
spacing: 24
|
|
||||||
|
|
||||||
height: visible ? homeTabButton.implicitHeight + tabBar.topPadding + tabBar.bottomPadding : 0
|
height: visible ? homeTabButton.implicitHeight + tabBar.topPadding + tabBar.bottomPadding : 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user