This is an automated email from the ASF dual-hosted git repository.

sunyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new b42553f  fix: Delete excess content. (#1285)
b42553f is described below

commit b42553f45c8030cfb188226439b78e1b731c5dda
Author: guoqqqi <72343596+guoq...@users.noreply.github.com>
AuthorDate: Wed Jan 13 15:38:03 2021 +0800

    fix: Delete excess content. (#1285)
---
 web/src/components/Plugin/PluginPage.tsx | 40 +++++++++++++++-----------------
 1 file changed, 19 insertions(+), 21 deletions(-)

diff --git a/web/src/components/Plugin/PluginPage.tsx 
b/web/src/components/Plugin/PluginPage.tsx
index 6384572..8ee0aa0 100644
--- a/web/src/components/Plugin/PluginPage.tsx
+++ b/web/src/components/Plugin/PluginPage.tsx
@@ -154,27 +154,25 @@ const PluginPage: React.FC<Props> = ({
   );
 
   const Plugin = () => (
-    <Content style={{ padding: '0 10px', backgroundColor: '#fff', minHeight: 
1400 }}>
-      <PluginDetail
-        name={name}
-        readonly={readonly}
-        type={type}
-        visible={name !== NEVER_EXIST_PLUGIN_FLAG}
-        schemaType={schemaType}
-        initialData={initialData}
-        pluginList={pluginList}
-        onClose={() => {
-          setName(NEVER_EXIST_PLUGIN_FLAG);
-        }}
-        onChange={({ codemirrorData, formData }) => {
-          onChange({
-            ...initialData,
-            [name]: { ...codemirrorData, disable: !formData.disable },
-          });
-          setName(NEVER_EXIST_PLUGIN_FLAG);
-        }}
-      />
-    </Content>
+    <PluginDetail
+      name={name}
+      readonly={readonly}
+      type={type}
+      visible={name !== NEVER_EXIST_PLUGIN_FLAG}
+      schemaType={schemaType}
+      initialData={initialData}
+      pluginList={pluginList}
+      onClose={() => {
+        setName(NEVER_EXIST_PLUGIN_FLAG);
+      }}
+      onChange={({ codemirrorData, formData }) => {
+        onChange({
+          ...initialData,
+          [name]: { ...codemirrorData, disable: !formData.disable },
+        });
+        setName(NEVER_EXIST_PLUGIN_FLAG);
+      }}
+    />
   );
   return (
     <>

Reply via email to