refactor(frontend): move form-item hints from extra to tooltip

Switch reality target, node options, and WARP auto-update-IP hints from
inline extra text to label tooltips for a cleaner form layout.
This commit is contained in:
MHSanaei
2026-06-17 17:24:16 +02:00
parent d6cddaff12
commit 4915d6b18d
23 changed files with 218 additions and 223 deletions
+2 -2
View File
@@ -220,8 +220,8 @@ func clashStringList(v any) []string {
}
func stripCIDR(addr string) string {
if i := strings.IndexByte(addr, '/'); i >= 0 {
return addr[:i]
if before, _, ok := strings.Cut(addr, "/"); ok {
return before
}
return addr
}