#468-grid-cell-size-based-on-screen-width #562
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!562
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#468-grid-cell-size-based-on-screen-width"
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?
Regarding issue #468, creating cell sizes based on screen width.
Problems: 1. Create good amount of column depending on screen width, 2. Create squares
Solution: 1. Creates column based on breakpoints, the amount of columns set are picked based on how much the user should be able to make a noticeable difference. 2. Since column sizes can differ a lot depending on how big one's screen is (one breakpoint can cover multiple screen sizes), the row size is based on the middle value of all column sizes within one breakpoint. This creates close enough to squares.
Possible improvements:
After discussion with other team leaders/issue coordinators we decided that the grid should have only two breakpoints: 8 columns when in split screen to full size and 4 columns when smaller. We don't feel it is necessary to have more columns, and react-grid-layout does not seem to handle having too many columns to well.
We are otherwise very pleased with the solution. Since this probably isn't the last time we make decision on grid sizes it is really good that the "config" can be changed easily.
Review on #468
What's done
Tested on macOS using Chrome
Inspected files
Dashboard.js
What needs to be done
No issue was found
Conclusion
The changes looks correct and the code is ready to be merged.
Looks good to me... it compiles and seems to work