Use pixel width rather than grid width for compact formatting #10932
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #10716
Previously we switched scalars to compact formatting when the occupied three horizontal grid cells and the non-compact value was more than 6 characters. This breaks down on narrower screens since we extend each card to full width and don't set the grid dimensions. As the issue points out, mobiles are narrow and should also show compact formatting.
The approach makes sense in that too little pixel width is what makes the text feel cramped. The major downside is that the formatting can now change as dashboard viewers resize their windows.
I pretty arbitrarily picked the 250px cutoff.
Above the cutoff:
![image](https://user-images.githubusercontent.com/691495/65191701-dc495180-da42-11e9-9cdd-ba59ca56ec23.png)
Below the cutoff:
![image](https://user-images.githubusercontent.com/691495/65191736-f420d580-da42-11e9-81b0-4c5a06167c8a.png)