Skip to content

Commit

Permalink
fix: port config subtitle text wrap issue (#694)
Browse files Browse the repository at this point in the history
Co-authored-by: tisfeng <tisfeng@gmail.com>
  • Loading branch information
phlpsong and tisfeng authored Oct 13, 2024
1 parent 6dcf42a commit 6a04207
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,19 @@ struct AdvancedTab: View {
labelText: "setting.general.advance.enable_http_server"
)
}
TextField(text: $httpPort, prompt: Text(verbatim: "8080")) {

LabeledContent {
TextField("", text: $httpPort, prompt: Text(verbatim: "8080"))
.frame(width: 100)
.fixedSize(horizontal: true, vertical: false)
} label: {
AdvancedTabItemView(
color: .red,
systemImage: SFSymbol.externaldriveConnectedToLineBelow.rawValue,
labelText: "setting.general.advance.http_port",
subtitleText: "setting.general.advance.http_port_desc"
)
}

} header: {
Text("setting.general.advance.header.http_server")
}
Expand Down

0 comments on commit 6a04207

Please sign in to comment.