Skip to content

Commit 8c84c06

Browse files
committed
fix(web): restore mobile config editor fill-height layout
1 parent e464bb6 commit 8c84c06

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

packages/web/src/styles/components.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7932,6 +7932,13 @@ textarea.input {
79327932
}
79337933

79347934
.config-card-body--fill-height {
7935+
display: flex;
7936+
flex-direction: column;
7937+
flex: 1;
7938+
min-height: 0;
7939+
}
7940+
7941+
.config-card-body--fill-height > * {
79357942
flex: 1;
79367943
min-height: 0;
79377944
}

packages/web/src/styles/components.theme.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,8 @@ describe("components.css theme-sensitive surfaces", () => {
10861086
const configCardBase = getRuleBlocksFrom(stylesheet, ".config-card")[0];
10871087
const configCardHeaderBase = getRuleBlocksFrom(stylesheet, ".config-card-header")[0];
10881088
const configCardBody = getLastRuleBlock(".config-card-body");
1089+
const configCardBodyFillHeight = getLastRuleBlock(".config-card-body--fill-height");
1090+
const configCardBodyFillHeightChild = getLastRuleBlock(".config-card-body--fill-height > *");
10891091
const configCardActionsBase = getRuleBlocksFrom(stylesheet, ".config-card-actions")[0];
10901092
const configCardMobile = getLastGroupedRuleBlockFrom(
10911093
stylesheet,
@@ -1112,6 +1114,10 @@ describe("components.css theme-sensitive surfaces", () => {
11121114
expect(configCardHeaderBase).not.toContain("cursor: pointer");
11131115
expect(configHeaderActionsMobile).toContain("padding-left: var(--sp-4)");
11141116
expect(configCardBody).toContain("background: transparent");
1117+
expect(configCardBodyFillHeight).toContain("display: flex");
1118+
expect(configCardBodyFillHeight).toContain("flex-direction: column");
1119+
expect(configCardBodyFillHeightChild).toContain("flex: 1");
1120+
expect(configCardBodyFillHeightChild).toContain("min-height: 0");
11151121
expect(configCardActionsBase).toContain("border-top: 1px solid var(--border)");
11161122
expect(configCardActionsBase).toContain("background: transparent");
11171123
expect(configEmptyStateBase).toContain("align-items: flex-start");

0 commit comments

Comments
 (0)