diff --git a/src/components/cqlLibraryEditor/CqlLibraryEditor.tsx b/src/components/cqlLibraryEditor/CqlLibraryEditor.tsx index 1f1c680..8d2018b 100644 --- a/src/components/cqlLibraryEditor/CqlLibraryEditor.tsx +++ b/src/components/cqlLibraryEditor/CqlLibraryEditor.tsx @@ -49,7 +49,7 @@ const CqlLibraryEditor = ({ onChange={onChange} value={value} inboundAnnotations={inboundAnnotations} - height="calc(100vh - 135px)" + height="100%" readOnly={readOnly} setOutboundAnnotations={setOutboundAnnotations} /> diff --git a/src/components/editCqlLibrary/EditCQLLibrary.scss b/src/components/editCqlLibrary/EditCQLLibrary.scss index 30731b9..41b010a 100644 --- a/src/components/editCqlLibrary/EditCQLLibrary.scss +++ b/src/components/editCqlLibrary/EditCQLLibrary.scss @@ -36,7 +36,7 @@ position: sticky; bottom: 0; left: 0; - z-index: 10; + z-index: 99; padding: 0 32px; background: #ffffff; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); @@ -57,11 +57,11 @@ } .allotment-wrapper { - margin: 0 32px; + margin: 0; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); .inner-right { - margin-left: 30px; + padding: 24px 16px; } .split-view { diff --git a/src/components/editCqlLibrary/EditCqlLibrary.tsx b/src/components/editCqlLibrary/EditCqlLibrary.tsx index 6bba9d9..c243885 100644 --- a/src/components/editCqlLibrary/EditCqlLibrary.tsx +++ b/src/components/editCqlLibrary/EditCqlLibrary.tsx @@ -387,164 +387,169 @@ const EditCqlLibrary = () => { -
+
-
- +
- - * - - Indicates required field - -
-
- {activeTab === "details" && ( -
- {/* These are loaded in first instance and then removed why ? */} - {!formik.values.draft && ( + + * + + Indicates required field + +
+
+ {activeTab === "details" && ( +
+ {/* These are loaded in first instance and then removed why ? */} + {!formik.values.draft && ( +
+ + CQL Library is not a draft. Only drafts can be + edited. +

+ } + canClose={false} + /> +
+ )} + {!canEdit && ( +
+ + You are not the owner of the CQL Library. Only + owner can edit it. +

+ } + canClose={false} + /> +
+ )} +
- - CQL Library is not a draft. Only drafts can be - edited. -

+
- )} - {!canEdit && ( +
- - You are not the owner of the CQL Library. Only - owner can edit it. -

+