update:hide ip info

This commit is contained in:
2026-04-06 02:04:21 +09:00
parent 8dff078cea
commit da82f233bc
2 changed files with 7 additions and 29 deletions

View File

@@ -137,16 +137,12 @@ func (m TUIInterface) viewSelectServer() string {
var rows []string
for i, name := range m.ServerNames {
srv := m.Servers[name]
detail := srv.User + "@" + srv.Host
if srv.Port != "" {
detail += ":" + srv.Port
}
row := styles.ServerRowStyle(i == m.Selected, name, detail)
rows = append(rows, row)
rows = append(rows, styles.ServerRowStyle(i == m.Selected, name))
}
return lipgloss.JoinVertical(lipgloss.Left, rows...)
}
func (m TUIInterface) viewAddServer() string {
f := m.Form
labels := []string{"Name", "Host", "User", "Private Key Path", "Port"}
required := []bool{true, true, true, true, false}