瀏覽代碼

:fire: Space

visuddhinanda 2 年之前
父節點
當前提交
7691979d8f

+ 3 - 3
dashboard/src/components/template/Nissaya.tsx

@@ -9,16 +9,16 @@ interface IWidgetNissayaCtl {
 }
 }
 const NissayaCtl = ({ pali, meaning, children }: IWidgetNissayaCtl) => {
 const NissayaCtl = ({ pali, meaning, children }: IWidgetNissayaCtl) => {
   return (
   return (
-    <Space style={{ marginRight: 10 }}>
+    <span style={{ marginRight: 10 }}>
       <PaliText
       <PaliText
         lookup={true}
         lookup={true}
         text={pali}
         text={pali}
         code="my"
         code="my"
         termToLocal={false}
         termToLocal={false}
         style={{ fontWeight: 700 }}
         style={{ fontWeight: 700 }}
-      />
+      />{" "}
       <NissayaMeaning text={meaning} />
       <NissayaMeaning text={meaning} />
-    </Space>
+    </span>
   );
   );
 };
 };
 
 

+ 3 - 3
dashboard/src/components/template/Nissaya/NissayaMeaning.tsx

@@ -52,18 +52,18 @@ const NissayaMeaningWidget = ({ text, code = "my" }: IWidget) => {
     return <></>;
     return <></>;
   }
   }
   return (
   return (
-    <Space>
+    <span>
       {words?.map((item, id) => {
       {words?.map((item, id) => {
         return (
         return (
           <span key={id}>
           <span key={id}>
             <Lookup search={item.base}>{item.base}</Lookup>
             <Lookup search={item.base}>{item.base}</Lookup>
             {item.ending?.map((item, id) => {
             {item.ending?.map((item, id) => {
               return <NissayaCardPop text={item} key={id} trigger={item} />;
               return <NissayaCardPop text={item} key={id} trigger={item} />;
-            })}
+            })}{" "}
           </span>
           </span>
         );
         );
       })}
       })}
-    </Space>
+    </span>
   );
   );
 };
 };