fix: #878
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user