diff --git a/esp/src/src-react/components/InfoGrid.tsx b/esp/src/src-react/components/InfoGrid.tsx index 65d763cb4da..c1bb14ce463 100644 --- a/esp/src/src-react/components/InfoGrid.tsx +++ b/esp/src/src-react/components/InfoGrid.tsx @@ -1,9 +1,10 @@ import * as React from "react"; import { Checkbox, CommandBar, ICommandBarItemProps, Link } from "@fluentui/react"; +import { SizeMe } from "react-sizeme"; import nlsHPCC from "src/nlsHPCC"; import { useWorkunitExceptions } from "../hooks/workunit"; import { FluentGrid, useCopyButtons, useFluentStoreState, FluentColumns } from "./controls/Grid"; -import { HolyGrail } from "../layouts/HolyGrail"; +import { pivotItemStyle } from "../layouts/pivot"; function extractGraphInfo(msg) { const regex = /^([a-zA-Z0-9 :]+: )(graph graph(\d+)\[(\d+)\], )(([a-zA-Z]+)\[(\d+)\]: )?(.*)$/gmi; @@ -149,18 +150,32 @@ export const InfoGrid: React.FunctionComponent = ({ setFilterCounts(filterCounts); }, [errorChecked, exceptions, infoChecked, otherChecked, warningChecked]); - return } - main={ - + React.useEffect(() => { + if (data.length) { + const header = document.querySelector(".ms-DetailsList-headerWrapper"); + const viewport = document.querySelector(".ms-Viewport"); + if (header && viewport) { + header.remove(); + header["style"].top = "-4px"; + viewport.prepend(header); + } } - />; + }, [data.length]); + + return {({ size }) => +
+ +
+ +
+
+ }
; }; diff --git a/esp/src/src-react/components/WorkunitSummary.tsx b/esp/src/src-react/components/WorkunitSummary.tsx index 7dfe0f6f6a4..2c9512d0829 100644 --- a/esp/src/src-react/components/WorkunitSummary.tsx +++ b/esp/src/src-react/components/WorkunitSummary.tsx @@ -6,7 +6,7 @@ import { WUStatus } from "src/react/index"; import { formatCost } from "src/Session"; import { useConfirm } from "../hooks/confirm"; import { useWorkunit } from "../hooks/workunit"; -import { ReflexContainer, ReflexElement, ReflexSplitter, classNames, styles } from "../layouts/react-reflex"; +import { ReflexContainer, ReflexElement, ReflexSplitter } from "../layouts/react-reflex"; import { pushUrl, replaceUrl } from "../util/history"; import { ShortVerticalDivider } from "./Common"; import { TableGroup } from "./forms/Groups"; @@ -167,71 +167,67 @@ export const WorkunitSummary: React.FunctionComponent = ({ }, [workunit?.ServiceNames?.Item]); return <> -
- - -
- - - - {showMessageBar && - - {nlsHPCC.SuccessfullySaved} - - } - - - -
- -
-
- { - switch (id) { - case "jobname": - setJobname(value); - break; - case "description": - setDescription(value); - break; - case "protected": - setProtected(value); - break; - default: - logger.debug(`${id}: ${value}`); - } - }} /> -
-
-
- -
-
- - - -
-
+ + +
+ + + + {showMessageBar && + + {nlsHPCC.SuccessfullySaved} + + } + + + +
+ +
+
+ { + switch (id) { + case "jobname": + setJobname(value); + break; + case "description": + setDescription(value); + break; + case "protected": + setProtected(value); + break; + default: + logger.debug(`${id}: ${value}`); + } + }} /> +
+
+
+ + + + +