Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 7bbb68b

Browse files
committed
fix: app positioning
1 parent afca42a commit 7bbb68b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/pages/Content/components/App/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,8 @@ const App: React.FC = () => {
2222
const dispatch = useTranslateJobsDispatch()
2323

2424
const appPosition = useMemo(() => {
25-
const vw = Math.max(
26-
document.documentElement.clientWidth || 0,
27-
window.innerWidth || 0,
28-
)
29-
const vh = Math.max(
30-
document.documentElement.clientHeight || 0,
31-
window.innerHeight || 0,
32-
)
25+
const vw = window.top.innerWidth || window.innerWidth || 0
26+
const vh = window.top.innerHeight || window.innerHeight || 0
3327

3428
return {
3529
x: vw - 450 - 20,

src/pages/Content/styles/components/App.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
height: 600px;
55
z-index: 1;
66
will-change: transform;
7-
@apply bg-white shadow rounded-lg overflow-hidden flex flex-col;
7+
@apply bg-white shadow-md rounded-lg overflow-hidden flex flex-col;
88

99
&--inactive {
1010
display: none;

0 commit comments

Comments
 (0)