generated from Seekra/repository-template
Fix navbar alignment on mobile devices #102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The navbar content is not justified correctly when the responsive design is used. (Here: iPhone 12)
Solution approach
Increase the navbar horizontal padding
Move dark light model to same vertical high if screen is smallto Fix Dark/Light Toggle Alignment on Mobile DevicesFix Dark/Light Toggle Alignment on Mobile Devicesto Fix color scheme button alignment on mobile devicesWe should move the logo slightly to the left too. I suggest doing that by simply reducing the navbar horizontal padding on small screens (less than
768px, but we use48rem(these two are equal due to the font size) because it is possible to increase the text size in some browsers which is almost the same as reducing the viewport width).Fix color scheme button alignment on mobile devicesto Fix navbar alignment on mobile devices