A mobile menu has to fit the visible screen
On November 6, I changed the shared mobile drawer on locdemunca.ro after a phone check exposed a simple but consequential layout problem: the sign-out control could sit below the visible screen. Scrolling the navigation did not reveal it, because the footer sat outside that scrolling area. The control existed and the menu opened, yet the person using the phone could not reach the action they needed.
The cause was the height assigned to the drawer. Its existing viewport measurement could remain taller than the visible space when the browser's toolbars were expanded. I added a dynamic viewport height after the original height declaration, keeping the older value as a fallback. The change let the drawer follow the available height without moving the sign-out action, redesigning the navigation, or changing how signing out worked. It was a small correction in a rule shared by the mobile menus.
The accompanying checks looked beyond whether a button was present in the page. They checked whether the entire sign-out control was inside the viewport and whether the point at its centre actually belonged to the control. They also covered shorter screen heights, the final navigation link, keyboard focus, closing the menu, and the existing form submission. Romanian and English layouts were included, along with the candidate, employer and administrator menus. That coverage mattered because a shared layout rule can affect more than the screen where the problem first appeared.
The correction was merged that day. A narrower screen is only one part of mobile layout: the space above and below the page can change during a visit too. When a menu combines scrolling links with a separate footer, those regions still have to fit together inside the available height. Making the navigation scrollable cannot compensate for placing its final action outside the screen.
Reflection
A control being present is only the start of usability. For locdemunca.ro, the useful question was whether someone could see and reach it under the screen conditions they actually had. The fix addressed that layout boundary while preserving the existing action.