Bladeren bron

书名在最前面

visuddhinanda 2 jaren geleden
bovenliggende
commit
bf6b39c8c9
1 gewijzigde bestanden met toevoegingen van 13 en 7 verwijderingen
  1. 13 7
      dashboard/src/components/fts/FullTextSearchResult.tsx

+ 13 - 7
dashboard/src/components/fts/FullTextSearchResult.tsx

@@ -124,21 +124,27 @@ const FullTxtSearchResultWidget = ({
       }}
       renderItem={(item) => (
         <List.Item>
-          <Title level={5}>
+          <div>
+            <Text>{item.path ? item.path[0].title : ""}</Text>
+          </div>
+          <div>
+            <Space style={{ color: "gray", fontSize: "80%" }}>
+              <TocPath data={item.path} style={{ fontSize: "80%" }} />
+              {"/"}
+              <Tag style={{ fontSize: "80%" }}>{item.paragraph}</Tag>
+            </Space>
+          </div>
+          <Title level={4} style={{ fontWeight: 500 }}>
             <Link
               to={`/article/para/${item.book}-${item.paragraph}?book=${item.book}&par=${item.paragraph}`}
             >
               {item.title}
             </Link>
           </Title>
-          <div>
+          <div style={{ display: "none" }}>
             <Text type="secondary">{item.paliTitle}</Text>
           </div>
-          <Space>
-            <TocPath data={item.path} />
-            {"/"}
-            <Tag>{item.paragraph}</Tag>
-          </Space>
+
           <div>
             <Marked className="search_content" text={item.content} />
           </div>