feat: polish mobile agent and project interactions

This commit is contained in:
kris
2026-03-30 12:54:18 +08:00
parent ee39fbfaa0
commit fd3d3c8ae5
3 changed files with 12 additions and 0 deletions

View File

@@ -97,7 +97,10 @@ test("mobile shell removes duplicated desktop topbar and collapses the main agen
test("mobile action sheets and oneliner runtime behave like bottom sheets", () => {
assert.match(APP, /class="sheet-handle"/);
assert.match(APP, /document\.body\.classList\.add\("oneliner-open"\)/);
assert.match(APP, /document\.body\.classList\.remove\("oneliner-open"\)/);
assert.match(CSS, /\.sheet-handle\s*\{/);
assert.match(CSS, /\.oneliner-open \.oneliner-fab\s*\{[\s\S]*opacity:\s*0/);
assert.match(CSS, /@media \(max-width: 760px\)[\s\S]*\.auth-modal,\s*[\s\S]*\.action-modal,\s*[\s\S]*\.oneliner-panel\s*\{[\s\S]*border-radius:\s*24px 24px 0 0/);
assert.match(CSS, /@media \(max-width: 760px\)[\s\S]*\.auth-actions\s*\{[\s\S]*position:\s*sticky/);
assert.match(CSS, /@media \(max-width: 760px\)[\s\S]*\.oneliner-composer\s*\{[\s\S]*position:\s*sticky/);