mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-04 05:16:47 +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 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>
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user