Skip to content

Commit

Permalink
Merge pull request #856 from Chilledheart/harmony_fix_display_layout
Browse files Browse the repository at this point in the history
harmony: fix display layout
  • Loading branch information
Chilledheart authored Mar 20, 2024
2 parents f3e9adc + 37c67bd commit c3e6f73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions harmony/entry/src/main/ets/view/DetailListComponent.ets
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export struct DetailListComponent {
Text($r('app.string.server_host'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.serverHost})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -33,6 +34,7 @@ export struct DetailListComponent {
Text($r('app.string.server_sni'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.serverSNI})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -48,6 +50,7 @@ export struct DetailListComponent {
Text($r('app.string.server_port'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.serverPort.toString()})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -64,6 +67,7 @@ export struct DetailListComponent {
Text($r('app.string.username'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.username})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -79,6 +83,7 @@ export struct DetailListComponent {
Text($r('app.string.password'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.password})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -95,6 +100,7 @@ export struct DetailListComponent {
Text($r('app.string.cipher'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextPicker({range: yass.getCipherStrings(), selected: yass.getCipherStrings().indexOf(this.dataItem.cipher)})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -109,6 +115,7 @@ export struct DetailListComponent {
Text($r('app.string.doh_url'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.dohUrl})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand All @@ -124,6 +131,7 @@ export struct DetailListComponent {
Text($r('app.string.timeout'))
.fontSize($r('app.float.name_text_size'))
.fontColor($r('app.color.text'))
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Blank()
TextInput({text: this.dataItem.timeout.toString()})
.width(CommonConstants.DETAIL_INPUT_WIDTH_PERCENT)
Expand Down

0 comments on commit c3e6f73

Please sign in to comment.