Skip to content

Commit 7e39336

Browse files
authored
fix(ui): Padding in DQ dashboard under domains and glossary tab (#27663)
1 parent 218e942 commit 7e39336

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

openmetadata-ui/src/main/resources/ui/src/components/DataQuality/DataQualityDashboard/DataQualityDashboard.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ const DataQualityDashboard = ({
633633
'tw:shadow-none': isGovernanceView,
634634
});
635635

636-
const cardBodyClass = isGovernanceView ? 'tw:py-6' : 'tw:p-6';
636+
const cardBodyClass = 'tw:p-6';
637637

638638
const filterBarContent = (
639639
<div

openmetadata-ui/src/main/resources/ui/src/utils/Domain/DomainClassBase.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,13 @@ describe('DomainClassBase', () => {
107107
expect(childProps.initialFilters).toBeUndefined();
108108
});
109109

110-
it('DQ tab passes className as data-quality-governance-tab-wrapper tw:mt-2', () => {
110+
it('DQ tab passes className as data-quality-governance-tab-wrapper', () => {
111111
const tabs = instance.getDomainDetailPageTabs(mockProps);
112112
const childProps = (
113113
tabs.at(-1)?.children as ReturnType<typeof createElement>
114114
).props;
115115

116-
expect(childProps.className).toBe(
117-
'data-quality-governance-tab-wrapper tw:mt-2'
118-
);
116+
expect(childProps.className).toBe('data-quality-governance-tab-wrapper');
119117
});
120118
});
121119

openmetadata-ui/src/main/resources/ui/src/utils/Domain/DomainClassBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class DomainClassBase {
106106
key: EntityTabs.DATA_OBSERVABILITY,
107107
children: createElement(DataQualityDashboard, {
108108
isGovernanceView: true,
109-
className: 'data-quality-governance-tab-wrapper tw:mt-2',
109+
className: 'data-quality-governance-tab-wrapper',
110110
initialFilters: domainDetailsPageProps.domain.fullyQualifiedName
111111
? { domainFqn: domainDetailsPageProps.domain.fullyQualifiedName }
112112
: undefined,

0 commit comments

Comments
 (0)