Skip to content

Bug in Mobile Layout – Navigation Menu Behavior* #678

@Jiwoon-Kim

Description

@Jiwoon-Kim

When scrolling the page so that only part of the header is visible and then tapping the main navigation menu, the menu appears below the admin toolbar instead of aligned with the header.

If the user then taps an empty area on the screen, the main header begins to behave like a sticky header on mobile.

At this point, if the user opens the toggle menu from the now-"sticky" header, the menu appears detached from the header, resulting in a broken layout.

Issue 1: Sticky Header Behavior After Toolbar Click

Steps to reproduce:

  1. On the mobile layout, click the main menu toggle button.
  2. Then tap the profile toolbar.

Bug behavior:

  • The main header begins to behave like a sticky header, remaining fixed at the top of the viewport.
  • The subheader shifts upward to occupy the original space of the main header.

📝 This behavior does not appear to be intended and may be triggered by layout reflows or class toggling after the toolbar interaction.


Issue 2: Menu Detaches from Subheader on Scroll

Steps to reproduce:

  1. Scroll down the page in mobile view.
  2. Click the subheader’s menu toggle.

Bug behavior:

  • The expanded subheader menu appears visually detached from the subheader.

Issue 3: Combined Layout Shift and Detached Menu

Steps to reproduce:

  1. Trigger the bug from Issue 1 (main header becomes sticky, subheader shifts).
  2. Expand the main header’s menu using its toggle.
  3. Expand the subheader’s menu using its toggle.
  4. Collapse the main header’s menu.

Bug behavior:

  • The subheader menu remains open while the main header menu is collapsed.
  • At this point, the subheader menu scrolls independently from its parent header, appearing detached from the layout.
  • The header-menu structure becomes fragmented and causes user confusion.

📝 This compound issue likely arises due to improper DOM hierarchy or inconsistent positioning logic when both headers and menus are simultaneously active.

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions