Fix curated assets description (#22827)

This commit is contained in:
Harshit Shah 2025-08-07 21:22:53 +05:30 committed by Pranita
parent 2b1c439224
commit b9c069bd2b
2 changed files with 28 additions and 7 deletions

View File

@ -55,6 +55,7 @@ import { getEntityName } from '../../../../utils/EntityUtils';
import searchClassBase from '../../../../utils/SearchClassBase'; import searchClassBase from '../../../../utils/SearchClassBase';
import serviceUtilClassBase from '../../../../utils/ServiceUtilClassBase'; import serviceUtilClassBase from '../../../../utils/ServiceUtilClassBase';
import { showErrorToast } from '../../../../utils/ToastUtils'; import { showErrorToast } from '../../../../utils/ToastUtils';
import RichTextEditorPreviewerV1 from '../../../common/RichTextEditor/RichTextEditorPreviewerV1';
import { useAdvanceSearch } from '../../../Explore/AdvanceSearchProvider/AdvanceSearchProvider.component'; import { useAdvanceSearch } from '../../../Explore/AdvanceSearchProvider/AdvanceSearchProvider.component';
import WidgetEmptyState from '../Common/WidgetEmptyState/WidgetEmptyState'; import WidgetEmptyState from '../Common/WidgetEmptyState/WidgetEmptyState';
import WidgetFooter from '../Common/WidgetFooter/WidgetFooter'; import WidgetFooter from '../Common/WidgetFooter/WidgetFooter';
@ -356,11 +357,12 @@ const CuratedAssetsWidget = ({
{title} {title}
</Typography.Text> </Typography.Text>
{description && ( {description && (
<Typography.Paragraph <RichTextEditorPreviewerV1
className="entity-list-item-description" className="max-two-lines entity-list-item-description"
ellipsis={{ rows: 2 }}> enableSeeMoreVariant={false}
{description} markdown={description}
</Typography.Paragraph> showReadMoreBtn={false}
/>
)} )}
</div> </div>
</div> </div>

View File

@ -36,10 +36,13 @@
width: @size-mlg; width: @size-mlg;
} }
} }
}
.curated-assets-list-item-link { .curated-assets-list-item-link {
text-decoration: none; text-decoration: none;
max-width: 280px; max-width: 280px;
&:hover {
text-decoration: none;
} }
} }
@ -92,6 +95,22 @@
font-weight: @font-regular; font-weight: @font-regular;
text-align: left; text-align: left;
margin-bottom: 0; margin-bottom: 0;
.markdown-parser {
.om-block-editor {
p {
font-size: @size-sm;
font-weight: @font-regular;
text-align: left;
margin-bottom: 0;
text-decoration: none;
color: @grey-900;
}
ul li::before {
background-color: @grey-4;
}
}
}
} }
.ant-dropdown-menu-item { .ant-dropdown-menu-item {