This commit is contained in:
James
2022-08-03 15:21:44 -04:00
parent 0294c02aed
commit b8504ffb25
2 changed files with 5 additions and 3 deletions

View File

@@ -6,7 +6,8 @@
&__content {
position: absolute;
background: var(--theme-input-bg);
display: none;
opacity: 0;
visibility: hidden;
z-index: var(--z-popup);
max-width: calc(100vw - #{$baseline});
@@ -184,7 +185,8 @@
&--active {
.popup__content {
display: block;
opacity: 1;
visibility: visible;
}
}

View File

@@ -57,7 +57,7 @@ const Popup: React.FC<Props> = (props) => {
bottom: contentBottomPos,
} = contentRef.current.getBoundingClientRect();
let boundingTopPos = 0;
let boundingTopPos = 100;
let boundingRightPos = windowWidth;
let boundingBottomPos = windowHeight;
let boundingLeftPos = 0;