Users Srinath_Rao1 and jrgong report a persistent horizontal line appearing in the Header submenu on mobile (specifically Android), which doesn’t appear on desktop. awesomerobot confirms the issue and suspects it’s a mobile Chrome rendering bug tied to horizontal overflow. A temporary fix suggested is shortening menu text (e.g., “Journal” instead of “Read Journal”). However, Srinath_Rao1 reports that after trying this and updating the component, the entire mobile menu disappeared — which awesomerobot attributes to position: absolute; being applied to .d-header in the theme CSS. Removing it restores visibility but may break theme layout. awesomerobot also notes the header appears outdated, suggesting possible template overrides. No permanent fix is confirmed yet, and the issue remains open for further investigation.
Can you see the line on the topic: The issue of political correctness? It does not go if I change screens. Problem exists only on mobile. https://www.theel.armchairjournal.com
I spent a little time on this, and I’m not 100% sure why this is happening. It might be a rendering bug in mobile Chrome (because it doesn’t happen in Chrome on desktop when Discourse is in the mobile view)… Horizontal overflow is what is causing it, but the component needs to overflow to be visible to work correctly.
In your specific case, if you made your menu content a little less wide… for example, using “Journal” instead of “Read Journal” – the problem goes away.
thanks for thinking about it. I removed the word Journal to observe, and also updated the component as there was a new component. The result was that the whole menu on mobile became invisible. I cant see it now.
Now that I look at it… it probably would cause some issues with your theme. Have you overridden templates to make some customizations? I see you’re on the latest version of Discourse… but it looks like the header is missing some of the new changes.