visuddhinanda 3 лет назад
Родитель
Сommit
44510ebb38
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      dashboard/src/components/article/ArticleView.tsx

+ 4 - 6
dashboard/src/components/article/ArticleView.tsx

@@ -4,7 +4,7 @@ import { ReloadOutlined } from "@ant-design/icons";
 import MdView from "../template/MdView";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 
-const { Paragraph, Title } = Typography;
+const { Paragraph, Title, Text } = Typography;
 
 export interface IWidgetArticleData {
   id?: string;
@@ -39,17 +39,15 @@ const Widget = ({
       </Button>
       <div>
         <TocPath data={path} channel={channels} />
-        <Title type="secondary" level={5}>
-          {subTitle}
-        </Title>
-        <Title level={3}>
+
+        <Title level={4}>
           <div
             dangerouslySetInnerHTML={{
               __html: title ? title : "",
             }}
           ></div>
         </Title>
-
+        <Text type="secondary">{subTitle}</Text>
         <Paragraph ellipsis={{ rows: 2, expandable: true, symbol: "more" }}>
           {summary}
         </Paragraph>