From 67f16f84975cf85332587ad191c41c297f0300bc Mon Sep 17 00:00:00 2001 From: albinAppsmith <87797149+albinAppsmith@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:11:05 +0530 Subject: [PATCH] fix: Add & list tabs padding fixes (#35057) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Fixed padding for add and list view of tab as per design. Fixes #34529 ## Automation /ok-to-test tags="@tag.IDE, @tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 03296dd5822b1d77342b243e1e606d29a66487f7 > Cypress dashboard. > Tags: `@tag.IDE, @tag.Sanity` > Spec: >
Mon, 22 Jul 2024 07:39:55 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **User Interface Enhancements** - Adjusted padding and layout properties across various components to improve visual alignment and spacing. - Simplified component structures by removing unnecessary padding properties. - **Bug Fixes** - Resolved potential issues related to visual inconsistencies caused by previous padding configurations. --- app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx | 4 ---- app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx | 4 ++-- .../src/pages/Editor/IDE/EditorPane/Query/Add.tsx | 4 ---- .../src/pages/Editor/IDE/EditorPane/Query/List.tsx | 10 +++------- .../IDE/EditorPane/components/AddAndSearchbar.tsx | 2 +- .../Editor/IDE/EditorPane/components/GroupedList.tsx | 2 +- .../IDE/EditorPane/components/SegmentAddHeader.tsx | 2 -- 7 files changed, 7 insertions(+), 21 deletions(-) diff --git a/app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx b/app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx index 2e524f80deaf..b45d056bf75f 100644 --- a/app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx +++ b/app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx @@ -63,10 +63,6 @@ const AddJS = ({ containerProps, innerContainerProps }: AddProps) => { /> ({ groupTitle: op.title, className: op.className, diff --git a/app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx b/app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx index 465b05c7b5fd..620ac0b373dc 100644 --- a/app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx +++ b/app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx @@ -60,6 +60,7 @@ const ListJSObjects = () => { flexDirection="column" gap="spaces-3" overflow="hidden" + px="spaces-3" py="spaces-3" > {files && files.length > 0 ? ( @@ -80,13 +81,12 @@ const ListJSObjects = () => { flexDirection="column" gap="spaces-4" overflowY="auto" - px="spaces-3" > {localFiles.map(({ group, items }) => { return ( {group !== "NA" ? ( - + { titleMessage={EDITOR_PANE_TEXTS.query_create_tab_title} /> ({ groupTitle: group.title, className: group.className, diff --git a/app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx b/app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx index f23a0e2e02c4..9321d44d80b2 100644 --- a/app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx +++ b/app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx @@ -47,6 +47,7 @@ const ListQuery = () => { flexDirection="column" gap="spaces-3" overflow="hidden" + px="spaces-3" py="spaces-3" > {files.length > 0 ? ( @@ -56,16 +57,11 @@ const ListQuery = () => { onSearch={setSearchTerm} /> ) : null} - + {localFiles.map(({ group, items }) => { return ( - + { return ( - + {hasAddPermission ? (