diff --git a/web/src/components/ui/layouts/AppPageLayout.tsx b/web/src/components/ui/layouts/AppPageLayout.tsx index f9ccd0b5d..170adcb31 100644 --- a/web/src/components/ui/layouts/AppPageLayout.tsx +++ b/web/src/components/ui/layouts/AppPageLayout.tsx @@ -32,7 +32,7 @@ export const AppPageLayout: React.FC< return (
diff --git a/web/src/components/ui/layouts/AppPageLayoutContent.tsx b/web/src/components/ui/layouts/AppPageLayoutContent.tsx index f2eb2a73f..9e9ca7cca 100644 --- a/web/src/components/ui/layouts/AppPageLayoutContent.tsx +++ b/web/src/components/ui/layouts/AppPageLayoutContent.tsx @@ -11,6 +11,8 @@ export const AppPageLayoutContent: React.FC< const Selector = scrollable ? ScrollArea : 'main'; const ChildSelector = scrollable ? 'main' : React.Fragment; + console.log('scrollable', scrollable); + return ( {children} diff --git a/web/src/controllers/CollectionListController/CollectionListController.tsx b/web/src/controllers/CollectionListController/CollectionListController.tsx index f945f9718..693c10edc 100644 --- a/web/src/controllers/CollectionListController/CollectionListController.tsx +++ b/web/src/controllers/CollectionListController/CollectionListController.tsx @@ -18,6 +18,8 @@ export const CollectionListController: React.FC = () => { return ( - - - + - - - !isFetchedDatasets ? ( - <> - ) : ( - - ), - [isFetchedDatasets, isAdmin, onClickEmptyState] - )} - /> + + !isFetchedDatasets ? ( + <> + ) : ( + + ), + [isFetchedDatasets, isAdmin, onClickEmptyState] + )} + /> - - + ); }); diff --git a/web/src/controllers/TermIndividualController/TermIndividualContent.tsx b/web/src/controllers/TermIndividualController/TermIndividualContent.tsx index fda112411..2de8bf1f6 100644 --- a/web/src/controllers/TermIndividualController/TermIndividualContent.tsx +++ b/web/src/controllers/TermIndividualController/TermIndividualContent.tsx @@ -64,92 +64,84 @@ export const TermIndividualContent: React.FC<{ }, [term?.name, term?.definition]); return ( - - {loadingSelectedTerm ? ( - - ) : ( -
-
-
-
- { - onSetTermName(v); - }} - level={4}> - {termName} - -
-
- - Last updated:{' '} - {formatDate({ - date: term?.updated_at!, - format: 'lll' - })} - -
+ <> +
+
+
+
+ { + onSetTermName(v); + }} + level={4}> + {termName} +
-
- + + Last updated:{' '} + {formatDate({ + date: term?.updated_at!, + format: 'lll' + })} +
-
- -
- { - onSetTermDefinition(e.target.value); - }} - variant="ghost" - /> -
-
- - - SQL Snippet - -
- -
-
- }> -
- { - setSqlHeight(clamp(v, 300, 800)); - }} - onChange={(v) => { - onSetTermSQL.run(v); - }} - monacoEditorOptions={{ - scrollbar: { - alwaysConsumeMouseWheel: false - } - }} - /> -
- +
+
- )} - - ); -}; -const SkeletonLoader: React.FC = () => { - return
{/* */}
; +
+ +
+ { + onSetTermDefinition(e.target.value); + }} + variant="ghost" + /> +
+
+ + + SQL Snippet + +
+ +
+
+ }> +
+ { + setSqlHeight(clamp(v, 300, 800)); + }} + onChange={(v) => { + onSetTermSQL.run(v); + }} + monacoEditorOptions={{ + scrollbar: { + alwaysConsumeMouseWheel: false + } + }} + /> +
+ +
+
+ + ); }; const MoreDropdown: React.FC<{ termId: string }> = ({ termId }) => { diff --git a/web/src/controllers/TermsListController/TermsListController.tsx b/web/src/controllers/TermsListController/TermsListController.tsx index abfeb8a8f..ffbe28561 100644 --- a/web/src/controllers/TermsListController/TermsListController.tsx +++ b/web/src/controllers/TermsListController/TermsListController.tsx @@ -66,7 +66,7 @@ export const TermsListController: React.FC<{ }); return ( - + <> - + ); });