visuddhinanda преди 3 години
родител
ревизия
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 MdView from "../template/MdView";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 
 
-const { Paragraph, Title } = Typography;
+const { Paragraph, Title, Text } = Typography;
 
 
 export interface IWidgetArticleData {
 export interface IWidgetArticleData {
   id?: string;
   id?: string;
@@ -39,17 +39,15 @@ const Widget = ({
       </Button>
       </Button>
       <div>
       <div>
         <TocPath data={path} channel={channels} />
         <TocPath data={path} channel={channels} />
-        <Title type="secondary" level={5}>
-          {subTitle}
-        </Title>
-        <Title level={3}>
+
+        <Title level={4}>
           <div
           <div
             dangerouslySetInnerHTML={{
             dangerouslySetInnerHTML={{
               __html: title ? title : "",
               __html: title ? title : "",
             }}
             }}
           ></div>
           ></div>
         </Title>
         </Title>
-
+        <Text type="secondary">{subTitle}</Text>
         <Paragraph ellipsis={{ rows: 2, expandable: true, symbol: "more" }}>
         <Paragraph ellipsis={{ rows: 2, expandable: true, symbol: "more" }}>
           {summary}
           {summary}
         </Paragraph>
         </Paragraph>