fix(web): 修复删除按钮hover不是红色
This commit is contained in:
4
service-web/client/src/index.scss
Normal file
4
service-web/client/src/index.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
// 改写一些amis中控制不到的全局CSS
|
||||
button.btn-deleted:hover {
|
||||
color: #dc2626 !important;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import {createRoot} from 'react-dom/client'
|
||||
import {createHashRouter, RouterProvider} from 'react-router'
|
||||
|
||||
import './index.scss'
|
||||
import './components/Registry.ts'
|
||||
|
||||
import {routes} from './route.tsx'
|
||||
|
||||
@@ -217,7 +217,7 @@ const Feedback: React.FC = () => {
|
||||
disabledOn: '${status === \'ANALYSIS_PROCESSING\'}',
|
||||
type: 'action',
|
||||
label: '删除',
|
||||
className: 'text-danger hover:text-red-600',
|
||||
className: 'text-danger btn-deleted',
|
||||
level: 'link',
|
||||
size: 'sm',
|
||||
actionType: 'ajax',
|
||||
|
||||
@@ -142,7 +142,7 @@ const DataDetail: React.FC = () => {
|
||||
{
|
||||
type: 'action',
|
||||
label: '删除',
|
||||
className: 'text-danger hover:text-red-600',
|
||||
className: 'text-danger btn-deleted',
|
||||
level: 'link',
|
||||
size: 'sm',
|
||||
actionType: 'ajax',
|
||||
|
||||
@@ -87,7 +87,7 @@ const DataDetail: React.FC = () => {
|
||||
{
|
||||
type: 'action',
|
||||
label: '删除',
|
||||
className: 'text-danger hover:text-red-600',
|
||||
className: 'text-danger btn-deleted',
|
||||
level: 'link',
|
||||
size: 'sm',
|
||||
actionType: 'ajax',
|
||||
|
||||
@@ -188,7 +188,7 @@ const Knowledge: React.FC = () => {
|
||||
{
|
||||
type: 'action',
|
||||
label: '删除',
|
||||
className: 'text-danger hover:text-red-600',
|
||||
className: 'text-danger btn-deleted',
|
||||
level: 'link',
|
||||
size: 'sm',
|
||||
actionType: 'ajax',
|
||||
|
||||
Reference in New Issue
Block a user