I am experiencing a display issue on Android and iPhone due to conflicting css commands. Here's what's happening: I am using React + React Leaflet with a header, main, and footer all set to width 100% within a parent div with body set to width and height of 100%, displayed in flex column.
Within the main page (also in flex display), I have a Leaflet card set to 100% width and height to fill the space between the main and footer sections.
I initially set the header to 7vh, main to 85vh, and footer to 8vh (totaling 100vh). This setup worked fine on desktop and some iPhones, but on Android, the footer was hidden by the browser bar taking up screen space.
To address this, I changed the footer to 100% or auto to maximize size while keeping the header at 7vh and footer at 8vh. This fixed the issue on Android but caused the card to disappear on iPhone, resulting in an empty space...
Has anyone else faced this problem before?
(Note: I also set the root and html elements to 100% as parents of the body in React, and applied a reset CSS style.)