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

Use pixel width rather than grid width for compact formatting #10932

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

paulrosenzweig
Copy link
Contributor

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

Below the cutoff:
image

Copy link
Contributor

@tlrobinson tlrobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation LGTM, if the design cartel (coalition?) approves. @kdoh @mazameli?

@paulrosenzweig paulrosenzweig merged commit 93037b3 into release-0.33.x Oct 15, 2019
@paulrosenzweig paulrosenzweig deleted the fix-10716 branch October 15, 2019 15:17
mazameli pushed a commit that referenced this pull request Oct 21, 2019
* hide section picker if when viewing column settings

* hide sidebar title

* add ChartSettingsSidebar test

* always show column settings title

* lint

* override sidebar title

* remove unneeded diff

* group reference sidebar tables by schema

* keep everything as one list

* use name instead of display_name

* add tests

* add schema pane

* filter to querable tables

* update tests

* unused imports

* sort schema and table names

* change scalar compact formatting to depend on pixel width rather than grid width (#10932)

* prompt for save when sharing unsaved question (#10976)

* use generic props override instead of just `title` and `onBack`

* Update pulse table style to match app (#10989)

* undefined -> null, you can spread null aparently

* Upgrade redshift driver to 1.2.36.1060 (#11181)

* fix bug where column settings were dropped (#11154)

* remove leading slash on publicPath (#11174)

* Fix GA crashes
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.

None yet

3 participants