mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-10-27 12:46:21 +00:00
fix(servers): preserve width when switching lists
This commit is contained in:
@@ -40,7 +40,8 @@ struct ServersView: View {
|
||||
HSplitView {
|
||||
sourceSidebar
|
||||
.frame(minWidth: 120, idealWidth: 150, maxWidth: 200)
|
||||
Group {
|
||||
// 保持分栏容器身份稳定,切换来源时只替换内部表格。
|
||||
ZStack(alignment: .topLeading) {
|
||||
if section == .favorites {
|
||||
FavoriteServersTable(
|
||||
workflow: workflow, activeTargetID: activeTargetID,
|
||||
|
||||
Reference in New Issue
Block a user