Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
| /> | ||
| </div> | ||
|
|
||
| )} |
There was a problem hiding this comment.
💡 Quality: Inconsistent indentation of conditional )} closings
The closing )} on lines 121 and 136 are heavily indented with ~15 spaces, which is inconsistent with the opening {shouldShowTags && ( and {shouldShowGlossaryTerms && ( that follow the surrounding indentation level. This makes the JSX tree harder to read and will likely be flagged by a linter/formatter.
Suggested fix:
Run the project's formatter (e.g., Prettier) to normalize indentation, or manually align the closing `)}` to match the indentation of the corresponding opening `{shouldShow… && (`.
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsFixes issue #27376 to ensure correct conditional rendering logic. Please normalize the indentation of closing braces on lines 121 and 136 to match the surrounding code block. 💡 Quality: Inconsistent indentation of conditional
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
Fixes #27376
This PR fixes the UI inconsistency issue in the right-hand panel of Data Asset pages when using a Custom Persona.
The problem was caused by excessive white space and inconsistent spacing between widgets (Data Products, Tags, Glossary Terms) due to two main issues:
EntityRightPanel spacing issue (Layer 1 fix):
Spacecomponent was rendering empty widget wrappers.24pxgaps, leading to large unintended white space.<div>s are only rendered when widgets have meaningful content or user permissions.Widget-level empty rendering issue (Layer 2 fix):
TagsContainerV2andDataProductsContainerrendered fullExpandableCardshells even when empty.Expected behavior:
Checklist:
Fixes #27376: UI inconsistency - remove excessive white space in right panelBug fix checklist:
Tested with:
-EntityRightPanel.test.tsx
Before(UI spacing between components in custom persona new):

After(There is no random spacing in the custom persona):
