feat(FN-4163): make github tracking enable button compact on desktop

Adds compact desktop styling for the GitHub tracking enable button in the task detail modal, with a new CSS regression test covering the button styling.

Fusion-Task-Id: FN-4163
This commit is contained in:
Fusion
2026-05-12 22:14:25 -07:00
committed by gsxdsm
parent 91f15e0744
commit 6417f00e9d
3 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import { loadAllAppCss, loadAllAppCssBaseOnly } from "../../test/cssFixture";
describe("TaskDetailModal GitHub tracking enable button CSS contract", () => {
it("FN-4163 keeps the desktop Enable button compact while preserving the mobile touch target", async () => {
const baseCss = await loadAllAppCssBaseOnly();
const css = await loadAllAppCss();
expect(baseCss).toMatch(
/\.detail-github-tracking-enable\s*\{[^}]*min-width\s*:\s*0\s*;[^}]*min-height\s*:\s*0\s*;/,
);
expect(css).toMatch(
/@media\s*\(max-width:\s*768px\)\s*\{[\s\S]*?\.detail-github-tracking-section\s+\.detail-github-tracking-enable\s*\{[^}]*min-width\s*:\s*44px\s*;[^}]*min-height\s*:\s*44px\s*;/,
);
});
});