From 6f389b001050df511419062d0dc1ab96d835a93f Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 18 Feb 2024 09:12:44 -0800 Subject: [PATCH] Fix split layout placeholder --- src-web/components/EnvironmentActionsDropdown.tsx | 1 - src-web/components/EnvironmentEditDialog.tsx | 13 +++++-------- src-web/components/core/SplitLayout.tsx | 7 ------- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src-web/components/EnvironmentActionsDropdown.tsx b/src-web/components/EnvironmentActionsDropdown.tsx index a6e30d40..4ccf6551 100644 --- a/src-web/components/EnvironmentActionsDropdown.tsx +++ b/src-web/components/EnvironmentActionsDropdown.tsx @@ -27,7 +27,6 @@ export const EnvironmentActionsDropdown = memo(function EnvironmentActionsDropdo const showEnvironmentDialog = useCallback(() => { dialog.toggle({ id: 'environment-editor', - hideX: true, noPadding: true, size: 'lg', className: 'h-[80vh]', diff --git a/src-web/components/EnvironmentEditDialog.tsx b/src-web/components/EnvironmentEditDialog.tsx index a121922d..52c43bc8 100644 --- a/src-web/components/EnvironmentEditDialog.tsx +++ b/src-web/components/EnvironmentEditDialog.tsx @@ -73,9 +73,11 @@ export const EnvironmentEditDialog = function ({ initialEnvironment }: Props) { > Global Variables -
- -
+ {environments.length > 0 && ( +
+ +
+ )} {environments.map((e) => (
{environment?.name ?? 'Global Variables'}
- {environment == null && ( - - Always available no matter which environment is active - - )}
; - } - return (
{firstSlot({ style: areaL, orientation: vertical ? 'vertical' : 'horizontal' })}