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

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new ef3f26fb12 [INLONG-8757][Dashboard] Implement buttons using a link 
(#8775)
ef3f26fb12 is described below

commit ef3f26fb12738b76f7b473009cde396a5949d1f4
Author: Lizhen <[email protected]>
AuthorDate: Mon Aug 21 18:20:23 2023 +0800

    [INLONG-8757][Dashboard] Implement buttons using a link (#8775)
---
 inlong-dashboard/src/ui/components/FieldList/index.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/inlong-dashboard/src/ui/components/FieldList/index.tsx 
b/inlong-dashboard/src/ui/components/FieldList/index.tsx
index 29f3b5955e..b1c960c86e 100644
--- a/inlong-dashboard/src/ui/components/FieldList/index.tsx
+++ b/inlong-dashboard/src/ui/components/FieldList/index.tsx
@@ -88,7 +88,11 @@ const Comp: React.FC<Props> = ({ inlongGroupId, 
inlongStreamId, isSource, column
           columns={columns}
           dataSource={isSource === true ? data?.fieldList : 
sinkData?.list[0]?.sinkFieldList}
           footer={() => (
-            <Button style={{ margin: 'auto' }} onClick={() => setCreateModal({ 
open: true })}>
+            <Button
+              type="link"
+              style={{ margin: 0 }}
+              onClick={() => setCreateModal({ open: true })}
+            >
               {i18n.t('components.FieldList.AddField')}
             </Button>
           )}

Reply via email to