Fermain / -mollify

10 stars 9 forks source link

Unable to Open Dropdown Submenu #152

Open Ousman37 opened 1 year ago

Ousman37 commented 1 year ago

Encountering trouble while attempting to open the dropdown submenu in the navigation. Clicking or hovering over the submenu items does not activate the anticipated response.

ShaindalDev commented 1 year ago

This something new or has it done this all along? could you also attach the code or branch you working in so it's easier to see with code?

Ousman37 commented 1 year ago

I don't think it's a new problem, but it's been persisting. The branch I'm currently working on is 'fix-navigation-bug'. To recap the main modifications, here's a summary of what I did in the "+layout.svelte" file:

Introduced a new variable named "isMobile" to determine whether the current screen is in a mobile view. Created functions to consistently monitor and update the "isMobile" variable based on the width of the screen. Utilized conditional rendering with {#if isMobile} to exclusively display the navigation drawer component on mobile screens. Adjusted the behavior of the navigation drawer to automatically close after selecting an item on mobile screens, while preserving its open state on desktop screens. Fine-tuned the threshold value for screen width (originally set at 768) that defines mobile screens, allowing for flexible adjustments.

pretzL commented 1 year ago

@Ousman37 is this issue still happening, or can it be closed?