mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-05 01:29:32 +01:00
fix(preview): COD-152 declare mobile response files visibility
This commit is contained in:
1 parent
1835b39e2c
commit
ac4ab8cf23
2 files changed
+6
-3
No files matched your search
@@ -34,7 +34,8 @@ const PHONE_WIDTH = 393;
|
||||
// Its per-device setting still defaults off on a handheld. With the blanket phone
|
||||
// hide gone, that default and the startup hide are the whole lock, so both are
|
||||
// pinned below ("File Viewer on a phone: off until it is switched on").
|
||||
const MOBILE_VISIBLE_ALLOWLIST = new Set<string>(['btn-file-viewer']);
|
||||
// Response files is available once Codex links a file, and its preview floats on phones.
|
||||
const MOBILE_VISIBLE_ALLOWLIST = new Set<string>(['btn-file-viewer', 'btn-response-files']);
|
||||
|
||||
// Buttons we expect to STAY hidden on phones — an explicit lock so a future edit
|
||||
// that removes a hide rule fails loudly (not silently). The attachments button is
|
||||
@@ -219,7 +220,9 @@ describe('File Viewer on a phone: off until it is switched on (#759)', () => {
|
||||
if (decl.value.trim() === 'none' && decl.important) hidesAtStartup = true;
|
||||
});
|
||||
});
|
||||
expect(hidesAtStartup, 'mobile.css must keep .btn-file-viewer in its html.mobile-init display:none rule').toBe(true);
|
||||
expect(hidesAtStartup, 'mobile.css must keep .btn-file-viewer in its html.mobile-init display:none rule').toBe(
|
||||
true
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user