change opacity instead of hiding header image for split pages

This commit is contained in:
William Grant 2022-03-03 14:59:44 +11:00
parent d6d87a31ce
commit 1735af5458
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default function RichPage(props: Props) {
useEffect(() => {
dispatch(setPageType(PageType.NORMAL));
}, []);
}, [dispatch]);
return (
<>
@ -42,7 +42,7 @@ export default function RichPage(props: Props) {
<div
className={classNames(
'relative w-full',
loaded ? 'block' : 'hidden',
loaded ? 'opacity-100' : 'opacity-0',
)}
style={{ height: '33vh' }}
>