fix(settings): align action footer divider

This commit is contained in:
GuoQing Zhang
2026-08-13 17:19:53 +08:00
parent dfadbdace7
commit 384c7662d4
3 changed files with 11 additions and 1 deletions
@@ -160,7 +160,7 @@ export function SettingsFooter({
}: SettingsFooterProps) {
return (
<footer
className={`flex h-14 shrink-0 items-center gap-3 border-t border-border-base bg-transparent ${
className={`flex h-16 shrink-0 items-center gap-3 border-t border-border-base bg-transparent ${
centered ? "justify-center" : "justify-end"
}`}
>
@@ -280,6 +280,11 @@ describe("ChannelSettingsPage", () => {
expect(businessColumn.parentElement?.className).toContain(
"max-[900px]:grid-cols-1",
);
expect(
screen
.getByText("com_unified_permission.confirm_create")
.closest("footer")?.className,
).toContain("h-16");
expect(screen.getByTestId("authorization-list-body").className).toContain(
"h-[400px]",
);
@@ -291,6 +291,11 @@ describe("KnowledgeSpaceSettingsPage", () => {
const settingsSurface = settingsPage.firstElementChild;
expect(settingsSurface?.className).toContain("w-full");
expect(settingsSurface?.className).not.toContain("max-w-[1368px]");
expect(
screen
.getByText("com_unified_permission.confirm_create")
.closest("footer")?.className,
).toContain("h-16");
expect(
screen.getByPlaceholderText(
"com_subscription.enter_knowledge_space_name",