From 246cec9ee1cfabcd6d75b96f5fc450c1ea91103e Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Thu, 17 Sep 2020 21:42:25 +0300
Subject: [PATCH] style fix

---
 .../src/components/tables/CreateTable.js              | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/wax-prosemirror-components/src/components/tables/CreateTable.js b/wax-prosemirror-components/src/components/tables/CreateTable.js
index d60a4e00f..00951d715 100644
--- a/wax-prosemirror-components/src/components/tables/CreateTable.js
+++ b/wax-prosemirror-components/src/components/tables/CreateTable.js
@@ -20,7 +20,7 @@ const ButtonStyled = styled.button`
 `;
 
 const InsertTableToolContainer = styled.div`
-  top: 50px;
+  top: 53px;
   position: absolute;
   height: auto;
   width: 167px;
@@ -37,22 +37,17 @@ const CreateTable = ({ view = {}, item }) => {
   }
 
   const { state, dispatch } = view;
-
   const [isTableToolDisplayed, setTableToolDisplay] = useState(false);
 
-  const showHideTable = () => {
-    setTableToolDisplay(!isTableToolDisplayed);
-  };
-
   const CreateButton = (
     <ButtonStyled
       type="button"
-      isActive={item.active && item.active(view.state)}
+      isActive={isTableToolDisplayed}
       title={item.title}
       disabled={item.enable && !item.enable(view.state)}
       onMouseDown={e => {
         e.preventDefault();
-        showHideTable();
+        setTableToolDisplay(!isTableToolDisplayed);
       }}
       select={item.select && item.select(view.state, activeViewId)}
     >
-- 
GitLab