From 400ec6fe7f4b5937299f1adf34fc01674de6a5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Toulet?= <35176601+AgnesToulet@users.noreply.github.com> Date: Thu, 17 Aug 2023 09:56:28 +0200 Subject: [PATCH] Rendering: Fix dashboard screenshot (#73190) Rendering: fix dashboard screenshot (cherry picked from commit 24978eff61310d6161887f84ec84cd472720db47) --- public/app/features/dashboard/dashgrid/DashboardGrid.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx index 295483aefa70..a452b09a09cd 100644 --- a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx @@ -6,6 +6,7 @@ import { Subscription } from 'rxjs'; import { config } from '@grafana/runtime'; import { GRID_CELL_HEIGHT, GRID_CELL_VMARGIN, GRID_COLUMN_COUNT } from 'app/core/constants'; +import { contextSrv } from 'app/core/services/context_srv'; import { DashboardPanelsChangedEvent } from 'app/types/events'; import { AddLibraryPanelWidget } from '../components/AddLibraryPanelWidget'; @@ -207,7 +208,7 @@ export class DashboardGrid extends PureComponent { * This can be quite distracting and make the dashboard appear to less snappy. */ onGetWrapperDivRef = (ref: HTMLDivElement | null) => { - if (ref) { + if (ref && contextSrv.user.authenticatedBy !== 'render') { setTimeout(() => { ref.classList.add('react-grid-layout--enable-move-animations'); }, 50);