Make the Permalinks page usable and responsive on mobile devices

AI-generated summary

The discussion focuses on improving the mobile responsiveness of the Permalinks page (admin/customize/permalinks) in Discourse’s admin section, which currently lacks mobile usability compared to other admin/customize/ pages. rishabh suggests this as a beginner-friendly CSS task and points to relevant SCSS files: the main customize.scss, desktop-specific styles, and mobile-specific styles. gutofoletto volunteers to tackle it and asks whether media queries in the main file would suffice. Johani confirms the team prefers keeping desktop and mobile styles separate for organization, advising to implement changes in the mobile SCSS file and offering help via PM. gutofoletto later reports having submitted a PR (#6496) and invites feedback, noting uncertainty about whether to report progress here or in the PR. The thread reflects a collaborative, beginner-welcoming approach to UX improvements, with clear guidance on code structure and contribution workflow.

All of the Admin section is pretty usable on mobile except for the Permalinks page at admin/customize/permalinks. It shouldn’t be very difficult to see how the existing CSS works for the other admin/customize/ pages and make this page responsive.
Sounds like a fun #starter-task for someone who’s learning CSS!

Relevant files:
Existing CSS for Permalinks: https://github.com/discourse/discourse/blob/master/app/assets/stylesheets/common/admin/customize.scss#L565
Desktop-specific CSS: https://github.com/discourse/discourse/blob/master/app/assets/stylesheets/desktop/admin_customize.scss
Mobile-specific CSS: https://github.com/discourse/discourse/blob/master/app/assets/stylesheets/mobile/admin_customize.scss

13 Likes

think I can take a look at that!

I saw you referenced different mobile and desktop scss files…can’t i just use media queries inside the main customize.scss file?

8 Likes

:+1:

Whenever possible, we definitely prefer to keep the desktop and mobile styles separate. It’s a lot more organized to have all related styles in one place.

So, try to have a look at making the changes in the mobile stylesheet if possible.

Feel free to PM me if you’re stuck on anything.

7 Likes

I opened this PR yesterday: Fix/Permalinks Admin - Mobile by gutofoletto · Pull Request #6496 · discourse/discourse · GitHub

I don’t know if I had to report here or there.
If there is something wrong or that could be improved, let me know :smiley:

3 Likes