Browse Source

:fire: tooltip

visuddhinanda 2 years ago
parent
commit
5312c1b5fb
1 changed files with 32 additions and 42 deletions
  1. 32 42
      dashboard/src/components/template/SentRead.tsx

+ 32 - 42
dashboard/src/components/template/SentRead.tsx

@@ -83,51 +83,41 @@ const SentReadFrame = ({
     }
     }
   }, [key, value, settings]);
   }, [key, value, settings]);
   return (
   return (
-    <Tooltip
-      placement="topLeft"
-      color="white"
-      title={
-        <Button type="link" size="small">
-          aa
-        </Button>
-      }
+    <div
+      style={{ display: "flex", flexDirection: layout, marginBottom: 10 }}
+      ref={boxSent}
     >
     >
+      <Text type="danger" mark>
+        {error}
+      </Text>
       <div
       <div
-        style={{ display: "flex", flexDirection: layout, marginBottom: 10 }}
-        ref={boxSent}
-      >
-        <Text type="danger" mark>
-          {error}
-        </Text>
-        <div
-          dangerouslySetInnerHTML={{
-            __html: `<div class="pcd_sent" id="sent_${book}-${para}-${wordStart}-${wordEnd}"></div>`,
-          }}
-        />
-        <div style={{ flex: "5", color: "#9f3a01" }} ref={boxOrg}>
-          {origin?.map((item, id) => {
-            return (
-              <MdView
-                key={id}
-                html={item.html}
-                wordWidget={true}
-                convertor={paliCode1}
-              />
-            );
-          })}
-        </div>
-        <div style={{ flex: "5" }}>
-          {translation?.map((item, id) => {
-            if (item.html.indexOf("<hr>") >= 0) console.log(item.html);
-            return (
-              <Text key={id}>
-                <MdView html={item.html} />
-              </Text>
-            );
-          })}
-        </div>
+        dangerouslySetInnerHTML={{
+          __html: `<div class="pcd_sent" id="sent_${book}-${para}-${wordStart}-${wordEnd}"></div>`,
+        }}
+      />
+      <div style={{ flex: "5", color: "#9f3a01" }} ref={boxOrg}>
+        {origin?.map((item, id) => {
+          return (
+            <MdView
+              key={id}
+              html={item.html}
+              wordWidget={true}
+              convertor={paliCode1}
+            />
+          );
+        })}
+      </div>
+      <div style={{ flex: "5" }}>
+        {translation?.map((item, id) => {
+          if (item.html.indexOf("<hr>") >= 0) console.log(item.html);
+          return (
+            <Text key={id}>
+              <MdView html={item.html} />
+            </Text>
+          );
+        })}
       </div>
       </div>
-    </Tooltip>
+    </div>
   );
   );
 };
 };