diff --git a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx index f68a0729bd7..7b51df8a8d2 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformList.tsx @@ -1,6 +1,6 @@ import { css, cx } from '@emotion/css'; import { DragDropContext, Draggable, Droppable, DropResult } from '@hello-pangea/dnd'; -import { HTMLAttributes, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import { Fragment, HTMLAttributes, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { t } from '@grafana/i18n'; @@ -500,9 +500,8 @@ export const QueryTransformList = memo( const showDebugLineAfter = isDebugMode && globalIndex === debugPosition - 1; return ( - <> +
)} - +
); })} {provided.placeholder} @@ -655,9 +654,8 @@ export const QueryTransformList = memo( const showDebugLineAfter = isDebugMode && globalIndex === debugPosition - 1; return ( - <> +
)} - +
); })} {provided.placeholder} diff --git a/public/app/features/dashboard-scene/panel-edit/PanelEditorRenderer.tsx b/public/app/features/dashboard-scene/panel-edit/PanelEditorRenderer.tsx index c3ab09f8222..772ed1c2bba 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelEditorRenderer.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelEditorRenderer.tsx @@ -148,6 +148,9 @@ function VizAndDataPane({ }; }, [controls, dataPane, sidebarState.size, vizHeight, containerHeight]); + const bottomPaneHeight = containerHeight - vizHeight - 80; + const expandedSidebarHeight = containerHeight - 16; + if (!containerHeight) { return null; } @@ -177,11 +180,20 @@ function VizAndDataPane({ {dataPane && ( <> -
+
-
+
{ - handle?.removeEventListener('mousedown', onMouseDown); - }; }, [maxWidth, minWidth, width] ); @@ -83,10 +79,6 @@ export function useVerticalResize({ initialHeight, minHeight = 0, maxHeight = In if (handle?.nodeType === Node.ELEMENT_NODE) { handle.addEventListener('mousedown', onMouseDown); } - - return () => { - handle?.removeEventListener('mousedown', onMouseDown); - }; }, [maxHeight, minHeight, height] );