Revert "Test another fix for submenus not opening"

This reverts commit a7cc0785f9.
This commit is contained in:
Lim Chee Aun 2024-04-04 14:29:35 +08:00
parent ed0d714cf2
commit 419ad34250

View file

@ -21,8 +21,6 @@ import Avatar from './avatar';
import Icon from './icon';
import MenuLink from './menu-link';
const supportsTouch = 'ontouchstart' in window;
function NavMenu(props) {
const snapStates = useSnapshot(states);
const { masto, instance, authenticated } = api();
@ -212,7 +210,6 @@ function NavMenu(props) {
)}
{lists?.length > 0 ? (
<SubMenu
openTrigger={supportsTouch ? 'clickOnly' : undefined}
menuClassName="nav-submenu"
overflow="auto"
gap={-8}
@ -248,7 +245,6 @@ function NavMenu(props) {
<Icon icon="bookmark" size="l" /> <span>Bookmarks</span>
</MenuLink>
<SubMenu
openTrigger={supportsTouch ? 'clickOnly' : undefined}
menuClassName="nav-submenu"
overflow="auto"
gap={-8}