fix: Hover card behind subheadings, previously it relied on being a portal without any explicit depth

closes #2062
This commit is contained in:
Tom Moor
2021-04-23 12:09:30 -07:00
parent d157e9bfcd
commit a818c7a924
2 changed files with 2 additions and 0 deletions

View File

@ -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%;

View File

@ -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,