fix plus button z-index (#530)
The preserve-3d fix for the FF parallax broke the plus button as the popover was always beneath the main body. normal z-index fixes didn't apply since it was 3d z-index problem.
This commit was merged in pull request #530.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
.preserve-3d-for-children * {
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
.preserve-3d-for-children {
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ const MainLayout = ({ children, shouldRemoveFooterInIde }) => {
|
||||
}, [hash, client])
|
||||
return (
|
||||
<div
|
||||
className="h-full flex flex-col ch-scrollbar overflow-y-scroll preserve-3d-for-children overflow-x-hidden"
|
||||
className="h-full flex flex-col ch-scrollbar overflow-y-scroll overflow-x-hidden"
|
||||
style={{ perspective: '1px', perspectiveOrigin: 'top center' }}
|
||||
>
|
||||
<header id="cadhub-main-header">
|
||||
@@ -171,7 +171,7 @@ const MainLayout = ({ children, shouldRemoveFooterInIde }) => {
|
||||
open={isLoginModalOpen}
|
||||
onClose={() => setIsLoginModalOpen(false)}
|
||||
/>
|
||||
<main className="flex-grow bg-ch-gray-800">{children}</main>
|
||||
<main className="flex-grow bg-ch-gray-800 preserve-3d-for-children">{children}</main>
|
||||
{!shouldRemoveFooterInIde && <Footer />}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user