fix(FN-1296): reduce done-card mobile touch targets to prevent vertical stretching
- Reduce min-height and padding on done column cards for mobile breakpoints - Update board-mobile test expectations to match new compact sizing - Prevents excessive vertical stretching of completed task cards on small screens
This commit is contained in:
@@ -163,25 +163,25 @@ describe("TaskCard mobile", () => {
|
||||
expectRuleToContain(mobileSection, ".card-archive-btn", "opacity: 1;");
|
||||
});
|
||||
|
||||
it("sets .card-archive-btn min-height: 44px in the mobile media block", () => {
|
||||
it("sets .card-archive-btn min-height: 28px in the mobile media block", () => {
|
||||
const css = fs.readFileSync(stylesPath, "utf-8");
|
||||
const mobileSection = getMainMobileSection(css);
|
||||
|
||||
expectRuleToContain(mobileSection, ".card-archive-btn", "min-height: 44px;");
|
||||
expectRuleToContain(mobileSection, ".card-archive-btn", "min-height: 28px;");
|
||||
});
|
||||
|
||||
it("sets .card-steps-toggle min-height: 44px in the mobile media block", () => {
|
||||
it("sets .card-steps-toggle min-height: 32px in the mobile media block", () => {
|
||||
const css = fs.readFileSync(stylesPath, "utf-8");
|
||||
const mobileSection = getMainMobileSection(css);
|
||||
|
||||
expectRuleToContain(mobileSection, ".card-steps-toggle", "min-height: 44px;");
|
||||
expectRuleToContain(mobileSection, ".card-steps-toggle", "min-height: 32px;");
|
||||
});
|
||||
|
||||
it("sets .card-session-files min-height: 44px in the mobile media block", () => {
|
||||
it("sets .card-session-files min-height: 32px in the mobile media block", () => {
|
||||
const css = fs.readFileSync(stylesPath, "utf-8");
|
||||
const mobileSection = getMainMobileSection(css);
|
||||
|
||||
expectRuleToContain(mobileSection, ".card-session-files", "min-height: 44px;");
|
||||
expectRuleToContain(mobileSection, ".card-session-files", "min-height: 32px;");
|
||||
});
|
||||
|
||||
it("keeps .card-edit-btn width and height at 44px in the mobile media block", () => {
|
||||
|
||||
@@ -6020,7 +6020,7 @@ body {
|
||||
.card-archive-btn,
|
||||
.card-unarchive-btn {
|
||||
opacity: 1;
|
||||
min-height: 44px;
|
||||
min-height: 28px;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
@@ -6035,7 +6035,8 @@ body {
|
||||
}
|
||||
|
||||
.card-steps-toggle {
|
||||
min-height: 44px;
|
||||
min-height: 32px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
/* Card: smaller status badges for 280px width */
|
||||
@@ -6058,7 +6059,7 @@ body {
|
||||
|
||||
/* Card: session files button touch target */
|
||||
.card-session-files {
|
||||
min-height: 44px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
/* Inline create: fit within 280px column */
|
||||
|
||||
Reference in New Issue
Block a user