mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-03 21:03:48 +00:00
Fix curated assets description (#22827)
This commit is contained in:
parent
2b1c439224
commit
b9c069bd2b
@ -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>
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user