Skip to content

Commit 330b678

Browse files
committed
Fix more menu when zooming in/out.
1 parent e4252cd commit 330b678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TopNav/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ const TopNav = ({
349349
prect = menuEl.parentElement.getBoundingClientRect()
350350
}
351351
// add the item if it's overflowing
352-
if (rect.right > prect.right) {
352+
if (rect.right > prect.right && rect.right - prect.right > 1) {
353353
newMoreMenu.unshift(menu)
354354
} else if (newMoreMenu.length && prect.right - rect.right < 100) {
355355
// make sure we have space for the 'more' menu

0 commit comments

Comments
 (0)