Selaa lähdekoodia

页码前加空格

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
9e8a7f5fe8
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      dashboard/src/components/template/QuoteLink.tsx

+ 2 - 3
dashboard/src/components/template/QuoteLink.tsx

@@ -33,7 +33,7 @@ const QuoteLinkCtl = ({
   found,
   found,
 }: IWidgetQuoteLinkCtl) => {
 }: IWidgetQuoteLinkCtl) => {
   const [tpl, setTpl] = useState<string>();
   const [tpl, setTpl] = useState<string>();
-  let textShow = volume === 0 ? page : ` ${volume}.${page}`;
+  let textShow = volume === 0 ? ` ${page}` : ` ${volume}.${page}`;
   if (type === "c") {
   if (type === "c") {
     textShow = ` ${chapter}`;
     textShow = ` ${chapter}`;
   }
   }
@@ -68,8 +68,7 @@ const QuoteLinkCtl = ({
               title
               title
             ) : (
             ) : (
               <>
               <>
-                <TermCtl {...term} compact={true} />
-                {textShow}
+                <TermCtl {...term} compact={true} /> {textShow}
               </>
               </>
             )
             )
           }
           }