- }
- values={{
- explored: t('message.have-not-explored-yet'),
- }}
- />
- }
+ emptyPlaceholderText={emptyPlaceholderText}
feedList={isTourOpen ? mockFeedData : threads}
hidePopover={isEditView}
isLoading={loading && !isTourOpen}
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/MyData/Widgets/FeedsWidget/FeedsWidget.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/MyData/Widgets/FeedsWidget/FeedsWidget.test.tsx
index c46b6589a8b..22958554893 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/MyData/Widgets/FeedsWidget/FeedsWidget.test.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/MyData/Widgets/FeedsWidget/FeedsWidget.test.tsx
@@ -12,7 +12,7 @@
*/
import { act, fireEvent, render, screen } from '@testing-library/react';
import React from 'react';
-import { PAGE_SIZE_LARGE } from '../../../../constants/constants';
+import { PAGE_SIZE_MEDIUM } from '../../../../constants/constants';
import { useApplicationStore } from '../../../../hooks/useApplicationStore';
import { mockUserData } from '../../../Settings/Users/mocks/User.mocks';
import FeedsWidget from './FeedsWidget.component';
@@ -134,7 +134,7 @@ describe('FeedsWidget', () => {
undefined,
undefined,
undefined,
- PAGE_SIZE_LARGE
+ PAGE_SIZE_MEDIUM
);
});
@@ -154,7 +154,7 @@ describe('FeedsWidget', () => {
undefined,
undefined,
undefined,
- PAGE_SIZE_LARGE
+ PAGE_SIZE_MEDIUM
);
});
diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/app.less b/openmetadata-ui/src/main/resources/ui/src/styles/app.less
index 634ee09f7e4..10564af2cfc 100644
--- a/openmetadata-ui/src/main/resources/ui/src/styles/app.less
+++ b/openmetadata-ui/src/main/resources/ui/src/styles/app.less
@@ -154,6 +154,9 @@ a[href].link-text-grey,
.text-underline {
text-decoration: underline;
}
+.text-line-through {
+ text-decoration: line-through;
+}
// image property
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx
index 24d2e1df17e..8606238f99f 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx
@@ -137,33 +137,31 @@ export const getDiffValue = (oldValue: string, newValue: string) => {
export const getAddedDiffElement = (text: string) => {
return (
-
{text}
-
+
);
};
export const getRemovedDiffElement = (text: string) => {
return (
-
{text}
-
+
);
};
export const getNormalDiffElement = (text: string) => {
return (
-
+
{text}
-
+
);
};
@@ -172,10 +170,18 @@ export const getTextDiff = (
newText: string,
latestText?: string
) => {
+ const imagePlaceholder = 'data:image';
if (isEmpty(oldText) && isEmpty(newText)) {
return latestText ?? '';
}
+ if (
+ newText.includes(imagePlaceholder) ||
+ oldText.includes(imagePlaceholder)
+ ) {
+ return newText;
+ }
+
const diffArr = diffWords(toString(oldText), toString(newText));
const result = diffArr.map((diff) => {