Test another fix for submenus not opening

This commit is contained in:
Lim Chee Aun 2024-03-30 14:44:48 +08:00
parent bb5d34c94c
commit a7cc0785f9

View file

@ -21,6 +21,8 @@ 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();
@ -210,6 +212,7 @@ function NavMenu(props) {
)}
{lists?.length > 0 ? (
<SubMenu
openTrigger={supportsTouch ? 'clickOnly' : undefined}
menuClassName="nav-submenu"
overflow="auto"
gap={-8}
@ -245,6 +248,7 @@ function NavMenu(props) {
<Icon icon="bookmark" size="l" /> <span>Bookmarks</span>
</MenuLink>
<SubMenu
openTrigger={supportsTouch ? 'clickOnly' : undefined}
menuClassName="nav-submenu"
overflow="auto"
gap={-8}