sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
333 stars 174 forks source link

Add mobile design enhancements #834

Closed stickz closed 1 year ago

stickz commented 1 year ago

This pull requests starts on mobile design enhancements. It maintains a desktop first philosophy.

To re-simulate these changes, visit https://develop.bans.redstonend.uk/ Afterwards, reduce the size of your web browser until the width stops scaling on the source-bans interface.

Lastly, I had to use the php81 branch. This was a requirement on my web host for testing purposes.

Rushaway commented 1 year ago

Still need some correction: image

stickz commented 1 year ago

@Rushaway which web browser are you using? I don't have this problem on my end. Could it be related to my sourcebans installation? And not the code changes? I didn't adjust the footer and navigation bar in this pull request.

Screenshot from 2022-12-13 05-44-13

sneak-it commented 1 year ago

Same issue here.

Screenshot_20221217-194038.jpg

Better when in landscape: Screenshot_20221217-194046.jpg

stickz commented 1 year ago

@sneak-it Thanks for the increased detail. The problem was with the view port. I disabled that feature. Everything should work as intended now. This is just the first set of changes. I don't too many changes in a single pull request because it's too hard to test.

Once this pull request is merged, I can reduce the reference width to 600px with more mobile enhancements. I plan to collapse the navigation bar, simplify bans & comms and shrink the icons in the admin panel. This will create even more mobile usability.

Rushaway commented 1 year ago

Make a proper PR with a branch for have a clean commits history pls

rumblefrog commented 1 year ago

Thanks for this; I cherry-picked the commits into php81.