From e8c26025b4a33629dcc40f7eeb4d4617092ad2a7 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 1 Jun 2022 22:25:52 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=9B=BE=E6=A0=87=E6=8C=89=E9=92=AEda?= =?UTF-8?q?nger=E5=92=8CopenReconfirmModal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/IconBtn.tsx | 16 ++++++++++++---- web/src/components/Modal.tsx | 30 ++++++++++++++++++++++-------- web/src/components/Problem.tsx | 2 +- web/src/plugin/common/index.ts | 6 ++++++ web/src/plugin/component/index.tsx | 10 ++++++++++ 5 files changed, 51 insertions(+), 13 deletions(-) diff --git a/web/src/components/IconBtn.tsx b/web/src/components/IconBtn.tsx index b7a2dcee..c2b7be2e 100644 --- a/web/src/components/IconBtn.tsx +++ b/web/src/components/IconBtn.tsx @@ -1,11 +1,9 @@ import { Button, ButtonProps, Tooltip } from 'antd'; +import clsx from 'clsx'; import React from 'react'; import { isValidStr } from 'tailchat-shared'; import { Icon } from './Icon'; -const btnClassName = - 'border-0 bg-black bg-opacity-20 text-white text-opacity-80 hover:text-opacity-100 hover:bg-opacity-60'; - type IconBtnShapeType = 'circle' | 'square'; function calcShape( @@ -35,7 +33,17 @@ export const IconBtn: React.FC = React.memo( ); const btnEl = ( -