瀏覽代碼

恢复误删的style

visuddhinanda 9 月之前
父節點
當前提交
c54f1256c1
共有 1 個文件被更改,包括 17 次插入1 次删除
  1. 17 1
      dashboard-v4/dashboard/src/components/template/SentEdit/SentTab.tsx

+ 17 - 1
dashboard-v4/dashboard/src/components/template/SentEdit/SentTab.tsx

@@ -20,7 +20,6 @@ import SentTabCopy from "./SentTabCopy";
 import { fullUrl } from "../../../utils";
 import { fullUrl } from "../../../utils";
 import SentWbw from "./SentWbw";
 import SentWbw from "./SentWbw";
 import SentTabButtonWbw from "./SentTabButtonWbw";
 import SentTabButtonWbw from "./SentTabButtonWbw";
-import "./style.css";
 
 
 const { Text } = Typography;
 const { Text } = Typography;
 
 
@@ -111,6 +110,23 @@ const SentTabWidget = ({
         onChange={(activeKey: string) => {
         onChange={(activeKey: string) => {
           setCurrKey(activeKey);
           setCurrKey(activeKey);
         }}
         }}
+        style={
+          isCompact
+            ? {
+                position: currKey === "close" ? "absolute" : "unset",
+                marginTop: -32,
+                width: "100%",
+                marginRight: 10,
+                backgroundColor:
+                  hover || currKey !== "close"
+                    ? "rgba(128, 128, 128, 0.1)"
+                    : "unset",
+              }
+            : {
+                padding: "0 8px",
+                backgroundColor: "rgba(128, 128, 128, 0.1)",
+              }
+        }
         tabBarStyle={{ marginBottom: 0 }}
         tabBarStyle={{ marginBottom: 0 }}
         size="small"
         size="small"
         tabBarGutter={0}
         tabBarGutter={0}