From 35068b6b69dc413beebfc378a364f5a634eba8ac Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Thu, 4 May 2023 18:49:56 -0500 Subject: [PATCH] Reverting unintented change to code-viewer layout (keeping reveal layout good) --- src/qqq/pages/records/view/RecordView.tsx | 4 ++-- src/qqq/utils/qqq/ValueUtils.tsx | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/qqq/pages/records/view/RecordView.tsx b/src/qqq/pages/records/view/RecordView.tsx index 90c1b0c..aac96eb 100644 --- a/src/qqq/pages/records/view/RecordView.tsx +++ b/src/qqq/pages/records/view/RecordView.tsx @@ -369,8 +369,8 @@ function RecordView({table, launchProcess}: Props): JSX.Element { section.fieldNames.map((fieldName: string) => ( - - + + {tableMetaData.fields.get(fieldName).label}:
 
diff --git a/src/qqq/utils/qqq/ValueUtils.tsx b/src/qqq/utils/qqq/ValueUtils.tsx index d7e27fb..8ec1324 100644 --- a/src/qqq/utils/qqq/ValueUtils.tsx +++ b/src/qqq/utils/qqq/ValueUtils.tsx @@ -456,7 +456,7 @@ function CodeViewer({name, mode, code}: {name: string; mode: string; code: strin }; return ( - <> + {mode == "json" && code && } {code && } {errorMessage} @@ -471,10 +471,11 @@ function CodeViewer({name, mode, code}: {name: string; mode: string; code: strin readOnly highlightActiveLine={false} width="100%" + style={{border: "1px solid gray", marginBottom: "1rem"}} showPrintMargin={false} height={isExpanded ? "80vh" : code ? "200px" : "50px"} /> - ); + ); } //////////////////////////////////////////////////////////////////////////////////////////////// @@ -514,7 +515,7 @@ function RevealComponent({fieldName, value, usage}: {fieldName: string, value: s return ( usage === "view" && adornmentFieldsMap.get(fieldName) === true ? ( - + handleRevealIconClick(fieldName)} sx={{cursor: "pointer", fontSize: "15px !important", position: "relative", top: "3px", marginRight: "5px"}}>visibility_on {displayValue} @@ -534,7 +535,7 @@ function RevealComponent({fieldName, value, usage}: {fieldName: string, value: s ):( - handleRevealIconClick(fieldName)} sx={{cursor: "pointer", fontSize: "15px !important", position: "relative", top: "3px", marginRight: "5px"}}>visibility_off{displayValue} + handleRevealIconClick(fieldName)} sx={{cursor: "pointer", fontSize: "15px !important", position: "relative", top: "3px", marginRight: "5px"}}>visibility_off{displayValue} ) ); }