From d96c4981ca214e7e3b9209901ad1edae00a97ea0 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Wed, 24 Nov 2021 17:55:07 +0530 Subject: [PATCH] fix: Button size inside the Table widget has increased + Property pane's panel not scrollable + Alignment issues (#9318) --- .../comments/CommentThread/CommentThread.tsx | 2 +- .../components/editorComponents/Button.tsx | 4 --- .../GlobalSearch/SnippetRefinements.tsx | 2 ++ .../GlobalSearch/SnippetsFilter.tsx | 13 +++++++--- .../editorComponents/JSResponseView.tsx | 4 +-- app/client/src/pages/Applications/index.tsx | 26 +++++++++---------- .../components/DataSourceOption.tsx | 2 +- .../GeneratePageForm/GeneratePageForm.tsx | 25 +++++++++++------- .../PropertyPane/PanelPropertiesEditor.tsx | 4 +-- .../src/pages/common/CanvasSelectionArena.tsx | 5 +++- app/client/src/pages/common/PageNotFound.tsx | 6 ++--- .../widgets/IframeWidget/component/index.tsx | 22 +++++++--------- 12 files changed, 61 insertions(+), 54 deletions(-) diff --git a/app/client/src/comments/CommentThread/CommentThread.tsx b/app/client/src/comments/CommentThread/CommentThread.tsx index 75ea2fdbb7..d99dc697dc 100644 --- a/app/client/src/comments/CommentThread/CommentThread.tsx +++ b/app/client/src/comments/CommentThread/CommentThread.tsx @@ -42,7 +42,7 @@ const ThreadContainer = styled(animated.div).withConfig({ pinned?: boolean; maxHeight: string; }>` - width: 100%; + width: ${(props) => (props.inline ? "280px" : "100%")}; max-width: 100%; background-color: ${(props) => props.inline diff --git a/app/client/src/components/editorComponents/Button.tsx b/app/client/src/components/editorComponents/Button.tsx index 1aea692683..cd28854156 100644 --- a/app/client/src/components/editorComponents/Button.tsx +++ b/app/client/src/components/editorComponents/Button.tsx @@ -26,10 +26,6 @@ const outline = css` const buttonStyles = css>` ${BlueprintButtonIntentsCSS} &&&& { - padding: ${(props) => - props.filled || props.outline - ? props.theme.spaces[2] + "px " + props.theme.spaces[3] + "px" - : 0}; border-radius: 0; background: ${(props) => props.filled || props.outline ? "inherit" : "transparent"}; diff --git a/app/client/src/components/editorComponents/GlobalSearch/SnippetRefinements.tsx b/app/client/src/components/editorComponents/GlobalSearch/SnippetRefinements.tsx index 43b1b5a06c..ee2b7ab85f 100644 --- a/app/client/src/components/editorComponents/GlobalSearch/SnippetRefinements.tsx +++ b/app/client/src/components/editorComponents/GlobalSearch/SnippetRefinements.tsx @@ -19,6 +19,8 @@ const RefinementListContainer = styled.div` justify-content: flex-start; flex-wrap: wrap; .refinement-pill { + display: flex; + align-items: center; margin: 2px 5px 0; padding: 5px; color: ${(props) => props.theme.colors.globalSearch.primaryTextColor}; diff --git a/app/client/src/components/editorComponents/GlobalSearch/SnippetsFilter.tsx b/app/client/src/components/editorComponents/GlobalSearch/SnippetsFilter.tsx index 359df04300..287749bb38 100644 --- a/app/client/src/components/editorComponents/GlobalSearch/SnippetsFilter.tsx +++ b/app/client/src/components/editorComponents/GlobalSearch/SnippetsFilter.tsx @@ -160,14 +160,19 @@ function SnippetsFilter({ refinements, snippetsEmpty }: any) { showFilter={showSnippetFilter} snippetsEmpty={snippetsEmpty} > -
diff --git a/app/client/src/components/editorComponents/JSResponseView.tsx b/app/client/src/components/editorComponents/JSResponseView.tsx index 7758aaf978..cf7e6b09a7 100644 --- a/app/client/src/components/editorComponents/JSResponseView.tsx +++ b/app/client/src/components/editorComponents/JSResponseView.tsx @@ -214,7 +214,7 @@ function JSResponseView(props: Props) { {sortedActionList && !sortedActionList?.length ? ( - + {createMessage(EMPTY_JS_OBJECT)} ) : ( @@ -248,7 +248,7 @@ function JSResponseView(props: Props) { ) : !responses.hasOwnProperty(selectActionId) ? ( - + {EMPTY_RESPONSE_FIRST_HALF()} {EMPTY_RESPONSE_LAST_HALF()} diff --git a/app/client/src/pages/Applications/index.tsx b/app/client/src/pages/Applications/index.tsx index b9c7a69fe2..30f18c83cf 100644 --- a/app/client/src/pages/Applications/index.tsx +++ b/app/client/src/pages/Applications/index.tsx @@ -796,20 +796,20 @@ function ApplicationsSection(props: any) { } underline /> - - getOnSelectAction( - DropdownOnSelectActions.REDIRECT, - { - path: `/org/${organization.id}/settings/general`, - }, - ) - } - text="Organization Settings" - />
+ + getOnSelectAction( + DropdownOnSelectActions.REDIRECT, + { + path: `/org/${organization.id}/settings/general`, + }, + ) + } + text="Organization Settings" + /> {enableImportExport && ( props.width}; + width: 100%; &&& svg { rect { diff --git a/app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx b/app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx index a9139c2d5b..d9785886ae 100644 --- a/app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx +++ b/app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx @@ -608,14 +608,14 @@ function GeneratePageForm() { !selectedTable.value || !showSubmitButton || isSelectedTableEmpty; return ( -
+
{GENERATE_PAGE_FORM_TITLE()} - + {selectedDatasource.value ? ( - +