mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Scenes: Make repeat panels respect maxPerRow (#84497)
This commit is contained in:
@@ -196,7 +196,7 @@ function useLayoutStyle(direction: RepeatDirection, itemCount: number, maxPerRow
|
||||
|
||||
if (direction === 'h') {
|
||||
const rowCount = Math.ceil(itemCount / maxPerRow);
|
||||
const columnCount = Math.ceil(itemCount / rowCount);
|
||||
const columnCount = Math.min(itemCount, maxPerRow);
|
||||
|
||||
return css({
|
||||
display: 'grid',
|
||||
|
||||
Reference in New Issue
Block a user