feat: add UI conformance and launch context
This commit is contained in:
@@ -82,7 +82,7 @@ export default function PageLayout({
|
||||
notices,
|
||||
mode = "standalone",
|
||||
scrollable,
|
||||
stickyHeader = true,
|
||||
stickyHeader,
|
||||
showHeader = true,
|
||||
documentationType = "user",
|
||||
className = "",
|
||||
@@ -96,6 +96,7 @@ export default function PageLayout({
|
||||
}: PageLayoutProps) {
|
||||
const shouldScroll = scrollable ?? mode === "standalone";
|
||||
const shouldInset = mode !== "embedded";
|
||||
const shouldStickHeader = stickyHeader ?? mode !== "embedded";
|
||||
const layoutClasses = [
|
||||
"page-layout",
|
||||
`page-layout-${mode}`,
|
||||
@@ -120,7 +121,7 @@ export default function PageLayout({
|
||||
description={description}
|
||||
actions={actions}
|
||||
loading={headerLoading ?? loading}
|
||||
sticky={stickyHeader}
|
||||
sticky={shouldStickHeader}
|
||||
className={headerClassName}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -171,8 +171,6 @@ export function UnsavedChangesProvider({ children }: {children: ReactNode;}) {
|
||||
open
|
||||
role="alertdialog"
|
||||
title={registration.title ?? "i18n:govoplan-core.unsaved_changes.29267269"}
|
||||
className="unsaved-changes-dialog"
|
||||
footerClassName="unsaved-changes-actions"
|
||||
closeOnBackdrop={!saving}
|
||||
closeDisabled={saving}
|
||||
onClose={() => setPendingAction(null)}
|
||||
|
||||
Reference in New Issue
Block a user