From 109756674f60b58013a23d3eed6b1fc60b8f5c9a Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 10 Nov 2024 18:02:18 +0800 Subject: [PATCH] fix: fix webhook ui --- web/src/components/WebhooksTable.js | 78 ++++++++++++++++++----------- 1 file changed, 49 insertions(+), 29 deletions(-) diff --git a/web/src/components/WebhooksTable.js b/web/src/components/WebhooksTable.js index 8d81889b0..34974606b 100644 --- a/web/src/components/WebhooksTable.js +++ b/web/src/components/WebhooksTable.js @@ -1,5 +1,12 @@ import React, { useEffect, useState } from 'react'; -import { Button, Form, Label, Pagination, Table, Popup } from 'semantic-ui-react'; +import { + Button, + Form, + Label, + Pagination, + Popup, + Table, +} from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import { API, copy, showError, showSuccess, showWarning } from '../helpers'; @@ -239,36 +246,28 @@ const WebhooksTable = () => {
- { - if ( - await copy( - webhookUrl - ) - ) { - showSuccess('已复制到剪贴板!'); - } else { - showWarning('无法复制到剪贴板!'); - } - }} - > - 复制 Webhook 链接 - - } /> - + { + if (await copy(webhookUrl)) { + showSuccess('已复制到剪贴板!'); + } else { + showWarning('无法复制到剪贴板!'); + } + }} + > + 复制 Webhook 链接 + + } + /> + + 删除 + + } + on='click' + flowing + hoverable + > + +