Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update responsive layout #45

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Conversation

cairocoder01
Copy link
Contributor

When viewing the current dashboard on a mobile device, you only see the Active Contacts tiles and might not ever scroll down to see more. Most phones have enough screen space to show more tiles than that. This collapses the tiles a bit vertically and updates the grid layout to be more responsive and adapt to different screen sizes.

This does make minimal use of container queries, which aren't 100% available but are about 80% on CanIUse. These solely provide enhancements that will fallback to the current view anyways, so users with older browsers will get the same experience as before.

See below screenshots for before/after comparisons at different resolutions (breakpoints used by Chrome DevTools responsive view).

Note: Github can't vertical align tables, so I recommend opening dev tools and creating this style so you can do a better side-by-side comparison:

table td {
    vertical-align: top;
}
Resolution Current/Old New/Updated
320px dashboard_320_old dashboard_320_new
425px dashboard_425_old dashboard_425_new
768px dashboard_768_old dashboard_768_new
1024px dashboard_1024_old dashboard_1024_new
1440px dashboard_1440_old dashboard_1440_new

@corsacca
Copy link
Member

corsacca commented Jun 3, 2024

Awesome work @cairocoder01! Love it.

@corsacca corsacca merged commit ead7df8 into DiscipleTools:master Jun 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants