Skip to content

Commit

Permalink
make the sections layout check more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowAya committed Oct 2, 2024
1 parent 91109e9 commit 03fbd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class AnchorCard extends HTMLElement {
// fix scaling in section view
setTimeout(() => {
const parent = this.parentElement.parentElement;
if (parent && parent.classList.contains('card')) {
if (parent && parent.classList.contains('card') && parent.parentElement.classList.contains('container')) {
parent.style.visibility = 'hidden';
parent.style.position = 'absolute';
if (parent.nextElementSibling)
Expand Down

0 comments on commit 03fbd33

Please sign in to comment.