fix: Hover card behind subheadings, previously it relied on being a portal without any explicit depth
closes #2062
This commit is contained in:
@ -201,6 +201,7 @@ const Card = styled.div`
|
||||
const Position = styled.div`
|
||||
margin-top: 10px;
|
||||
position: ${({ fixed }) => (fixed ? "fixed" : "absolute")};
|
||||
z-index: ${(props) => props.theme.depths.hoverPreview};
|
||||
display: flex;
|
||||
max-height: 75%;
|
||||
|
||||
|
@ -109,6 +109,7 @@ export const base = {
|
||||
depths: {
|
||||
header: 800,
|
||||
sidebar: 900,
|
||||
hoverPreview: 998,
|
||||
// Note: editor lightbox is z-index 999
|
||||
modalOverlay: 2000,
|
||||
modal: 3000,
|
||||
|
Reference in New Issue
Block a user