mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 14:09:42 +02:00
fix(mobile): hide attachments-history button on phones + regression guards
The COD-39 attachment-history header button was visible on the cramped phone header. Hide it on phones alongside the settings gear and lifecycle log (the mobile header is intentionally minimal — those controls live in the toolbar). One-line addition to the existing @media (max-width: 430px) display:none block in mobile.css. This is the second time a header control leaked onto mobile (the plan-usage chip was the first), so add two regression guards: - test/mobile-header-buttons-policy.test.ts — a pure static analysis of index.html + mobile.css (no browser), so it runs in the normal CI sweep (the test/mobile/** Playwright suite is EXCLUDED from CI and never gated this). It enumerates every default-visible header button and fails when one has no phone-visibility decision — either a mobile.css hide rule or an explicit MOBILE_VISIBLE_ALLOWLIST entry. A new header button now forces that decision. Verified it fails on the pre-fix state and passes after. - test/mobile/header-buttons.test.ts — real-browser E2E in the mobile suite: asserts the attachments/settings/lifecycle buttons are hidden on an emulated iPhone 14 Pro and the attachments button is visible on a desktop-class tablet. tsc + lint + prettier + both new tests green. Only CSS + tests changed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -434,9 +434,12 @@ html.mobile-init .file-browser-panel {
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
/* Hide header settings gear and lifecycle log on mobile - settings moved to toolbar */
|
||||
/* Hide header settings gear and lifecycle log on mobile - settings moved to toolbar.
|
||||
Also hide the attachment-history button: the header is kept minimal on phones and
|
||||
the drawer is a desktop-oriented panel. */
|
||||
.btn-icon-header.btn-settings,
|
||||
.btn-icon-header.btn-lifecycle-log {
|
||||
.btn-icon-header.btn-lifecycle-log,
|
||||
.btn-icon-header.btn-attachments-history {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user