apps/web: fix overlay layout
This commit is contained in:
parent
39c13e9422
commit
6c2e204499
@ -7,8 +7,10 @@ import { Background, LoadingSpinner } from 'ui';
|
||||
|
||||
function OverlayWrapper({ children }: PropsWithChildren) {
|
||||
return (
|
||||
<Background className="absolute grid h-full w-full items-center justify-center border-none bg-opacity-80 backdrop-blur-sm">
|
||||
<div className="flex flex-row items-center gap-2">{children} </div>
|
||||
<Background className="absolute left-0 top-0 grid h-full w-full place-items-center bg-opacity-80 backdrop-blur-sm">
|
||||
<div className="absolute bottom-[50vh] flex flex-row items-center gap-2 md:relative md:bottom-0">
|
||||
{children}
|
||||
</div>
|
||||
</Background>
|
||||
);
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ function Content(props: Props) {
|
||||
const { pageUrlParams } = useContext(FormContext);
|
||||
|
||||
return (
|
||||
<Background className="flex w-full flex-col gap-2 p-5">
|
||||
<Background className="relative flex w-full flex-col gap-2 p-5">
|
||||
<Overlay />
|
||||
<Header title={title} link={'/ius' + createUrl({ ...pageUrlParams, route: '/conditions' })} />
|
||||
<Elements {...props} />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user