Improve server picker scrolling and subscription input layout
This commit is contained in:
@@ -100,7 +100,7 @@ test('manual ping uses plain language and keeps results beside server names', ()
|
||||
assert.doesNotMatch(picker, /TCP|Не проверен/);
|
||||
assert.match(picker, /<strong>\{server\.label\}<\/strong>[\s\S]*?<\/button>[\s\S]*?client-server-meta/);
|
||||
assert.match(picker, /\[server\.city, server\.country\]\.filter\(Boolean\)\.join\(' · '\)/);
|
||||
assert.match(picker, /is-scalable\$\{servers\.length <= SIMPLE_SERVER_LIMIT \? ' is-short' : ''\}/);
|
||||
assert.match(picker, /is-scalable\$\{simpleServers\.length <= INLINE_SERVER_ROWS \? ' is-short' : ''\}/);
|
||||
assert.match(styles, /\.client-server-row \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 120px minmax\(0, 1fr\);/);
|
||||
assert.match(styles, /\.client-server-row \.client-server \{[\s\S]*?width: 120px;/);
|
||||
assert.match(styles, /\.client-server-health \{[\s\S]*?font-size: 9px;[\s\S]*?font-variant-numeric: tabular-nums;/);
|
||||
@@ -129,8 +129,9 @@ test('server picker starts simple and reveals advanced controls on demand', () =
|
||||
assert.match(picker, /client-server-mode-panel is-advanced/);
|
||||
assert.match(picker, /inert={advanced \? true : undefined}/);
|
||||
assert.match(picker, /inert={!advanced \? true : undefined}/);
|
||||
assert.match(picker, /const SIMPLE_SERVER_LIMIT = 5/);
|
||||
assert.match(picker, /\.slice\(0, SIMPLE_SERVER_LIMIT\)/);
|
||||
assert.match(picker, /const INLINE_SERVER_ROWS = 8/);
|
||||
assert.doesNotMatch(picker, /simpleServers[\s\S]*\.slice\(0,/);
|
||||
assert.doesNotMatch(picker, /client-server-overflow-note|доступны через поиск/);
|
||||
assert.match(picker, /selected && selected\.id !== anchorServerId && <ServerRow/);
|
||||
assert.match(picker, /id !== selectedServerId && id !== anchorServerId/);
|
||||
assert.match(overview, /anchorServerId=\{pickerState\.anchorServerId\}/);
|
||||
|
||||
Reference in New Issue
Block a user