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

View File

@ -36,10 +36,13 @@
width: @size-mlg;
}
}
}
.curated-assets-list-item-link {
.curated-assets-list-item-link {
text-decoration: none;
max-width: 280px;
&:hover {
text-decoration: none;
}
}
@ -92,6 +95,22 @@
font-weight: @font-regular;
text-align: left;
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 {