mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* grid: fix small panels migration and make panel height closer to row height * grid: migrate rows * grid: increase min panel height * grid: fix panel placement for complex layouts * dashboard migration: refactor * dashboard migration: add tests for grid layout * dashboard: fix complex layout migration * dashboard migration fix: fill current row if it possible * test: fix karma tests by setting default panel span * dashboard: fix migration when panel height more than row height * dashboard: fix migration for collapsed rows * grid: add all rows if even one collapsed or titled row is present
10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
|
|
export const GRID_CELL_HEIGHT = 30;
|
|
export const GRID_CELL_VMARGIN = 10;
|
|
export const GRID_COLUMN_COUNT = 24;
|
|
export const REPEAT_DIR_VERTICAL = 'v';
|
|
|
|
export const DEFAULT_PANEL_SPAN = 4;
|
|
export const DEFAULT_ROW_HEIGHT = 250;
|
|
export const MIN_PANEL_HEIGHT = GRID_CELL_HEIGHT * 3;
|