Skip to content

Commit

Permalink
[dashboard] more granular grid layout (#4416)
Browse files Browse the repository at this point in the history
Moving to a grid that is 4 times more granular. 48 columns.

Shipping a db migration script which will upgrade the position metadata
to reflect this change.

Also adapting the examples to the new grid parameters.
  • Loading branch information
mistercrunch committed Feb 16, 2018
1 parent 1e99f9e commit 680bfc1
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 228 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class GridLayout extends React.Component {
layouts={{ lg: this.props.dashboard.layout }}
onResizeStop={this.onResizeStop}
onDragStop={this.onDragStop}
cols={{ lg: 12, md: 12, sm: 10, xs: 8, xxs: 6 }}
rowHeight={100}
cols={{ lg: 48, md: 48, sm: 40, xs: 32, xxs: 24 }}
rowHeight={10}
autoSize
margin={[20, 20]}
useCSSTransforms
Expand Down

0 comments on commit 680bfc1

Please sign in to comment.