Fix mobile settings layout overflow

This commit is contained in:
vorotamoroz
2026-08-25 17:27:31 +00:00
parent 0b1f5ca719
commit 4ff5b4dfe8
8 changed files with 339 additions and 57 deletions
@@ -12,11 +12,13 @@ const remediationHarness = vi.hoisted(() => {
onChange: vi.fn(),
setValue: vi.fn(),
};
const setClass = vi.fn();
return {
createSpan,
dateElement,
inputEl,
setClass,
textComponent,
};
});
@@ -36,6 +38,11 @@ vi.mock("./LiveSyncSetting.ts", () => ({
return this;
}
setClass(value: string): this {
remediationHarness.setClass(value);
return this;
}
addApplyButton(): this {
return this;
}
@@ -93,5 +100,6 @@ describe("panePatches remediation setting", () => {
expect(createSpan).not.toHaveBeenCalled();
expect(remediationHarness.createSpan).toHaveBeenCalledOnce();
expect(remediationHarness.dateElement.textContent).toBe("No limit configured");
expect(remediationHarness.setClass).toHaveBeenCalledWith("sls-setting-mobile-wrap-controls");
});
});