feat(FN-2647): constrain board header width behavior
- Add desktop CSS constraints so column headers and titles can shrink without expanding board columns - Prevent auto-merge toggle controls from shrinking to preserve stable header layout - Add board CSS regression tests for the 6-column minmax grid template and header truncation rules
This commit is contained in:
@@ -118,6 +118,24 @@ beforeEach(() => {
|
||||
}
|
||||
});
|
||||
|
||||
describe("Board desktop column width CSS", () => {
|
||||
it("keeps desktop board columns equal width via 6x minmax(300px, 1fr) grid", () => {
|
||||
const css = loadAllAppCss();
|
||||
|
||||
expectRuleToContain(css, ".board", "grid-template-columns: repeat(6, minmax(300px, 1fr));");
|
||||
});
|
||||
|
||||
it("constrains header content so actions cannot stretch column width", () => {
|
||||
const css = loadAllAppCss();
|
||||
|
||||
expectRuleToContain(css, ".column-header", "min-width: 0;");
|
||||
expectRuleToContain(css, ".column-header h2", "min-width: 0;");
|
||||
expectRuleToContain(css, ".column-header h2", "overflow: hidden;");
|
||||
expectRuleToContain(css, ".column-header h2", "text-overflow: ellipsis;");
|
||||
expectRuleToContain(css, ".column-header h2", "white-space: nowrap;");
|
||||
});
|
||||
});
|
||||
|
||||
describe("Board and Column mobile CSS", () => {
|
||||
it("contains .board scroll-snap-type: x mandatory in the mobile media block", () => {
|
||||
const css = loadAllAppCss();
|
||||
|
||||
@@ -526,6 +526,7 @@ body {
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
padding: calc(var(--space-lg) - 2px) calc(var(--space-lg) - 2px) 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.column-dot {
|
||||
@@ -556,6 +557,10 @@ body {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.column-count {
|
||||
@@ -2571,7 +2576,7 @@ input[type="range"]:focus-visible {
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.auto-merge-toggle input {
|
||||
|
||||
Reference in New Issue
Block a user