From ec9c370941292fc82c8824f02134820003616898 Mon Sep 17 00:00:00 2001 From: moshangqi <2509678669@qq.com> Date: Wed, 1 Nov 2023 19:33:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/svg/action-delete.svg | 15 ++++ .../DisableUrlCard/index.module.less | 65 +++++++--------- src/components/DisableUrlCard/index.tsx | 28 ++++--- src/pages/setting/app.module.less | 2 +- src/pages/setting/app.tsx | 78 ++++++++++--------- src/pages/setting/common.module.less | 10 +-- src/pages/setting/index.tsx | 10 ++- src/pages/setting/sidePanel/index.module.less | 6 ++ src/pages/setting/sidePanel/index.tsx | 2 +- src/pages/setting/wordMark/index.module.less | 4 + src/pages/setting/wordMark/index.tsx | 4 + 11 files changed, 128 insertions(+), 96 deletions(-) create mode 100644 src/assets/svg/action-delete.svg create mode 100644 src/pages/setting/sidePanel/index.module.less diff --git a/src/assets/svg/action-delete.svg b/src/assets/svg/action-delete.svg new file mode 100644 index 00000000..f5ae7b3f --- /dev/null +++ b/src/assets/svg/action-delete.svg @@ -0,0 +1,15 @@ + + \ No newline at end of file diff --git a/src/components/DisableUrlCard/index.module.less b/src/components/DisableUrlCard/index.module.less index ef1f9ca5..19a04208 100644 --- a/src/components/DisableUrlCard/index.module.less +++ b/src/components/DisableUrlCard/index.module.less @@ -1,50 +1,39 @@ @import '~@/styles/parameters.less'; -.wrapper { +.cardItemWrapper { display: flex; + gap: 12px; + padding: 12px 12px; align-items: center; + background-color: rgba(0, 0, 0, 0.03); border-radius: 8px; - box-shadow: @panel-default-box-shadow; - padding: 12px; - border: 1px solid @border-light-color; - flex-wrap: wrap; - gap: 16px; + border: 1px solid rgba(0, 0, 0, 0.1); - .cardItemWrapper { - display: flex; - gap: 12px; - padding: 6px 12px; - align-items: center; - background-color: @grey-2; - border-radius: 8px; - width: calc(50% - 8px); - border: 1px solid @border-color-primary; - - .icon { - width: 16px; - height: 16px; - border-radius: 50%; - flex: 0 0 auto; - } + .icon { + width: 16px; + height: 16px; + border-radius: 50%; + flex: 0 0 auto; + } - .name { - overflow: hidden; - flex: 1 1 auto; - white-space: nowrap; - text-overflow: ellipsis; - } + .name { + overflow: hidden; + flex: 1 1 auto; + white-space: nowrap; + text-overflow: ellipsis; + } - .deleteWrapper { - padding: 4px; - display: flex; - align-items: center; - cursor: pointer; - flex: 0 0 auto; - border-radius: 4px; + .deleteWrapper { + padding: 4px; + display: flex; + align-items: center; + cursor: pointer; + flex: 0 0 auto; + border-radius: 4px; + justify-content: center; - &:hover { - background-color: @bg-primary-hover; - } + &:hover { + background-color: @bg-primary-hover; } } } diff --git a/src/components/DisableUrlCard/index.tsx b/src/components/DisableUrlCard/index.tsx index efd59158..d353bfd5 100644 --- a/src/components/DisableUrlCard/index.tsx +++ b/src/components/DisableUrlCard/index.tsx @@ -1,5 +1,7 @@ import React from 'react'; -import { DeleteOutlined } from '@ant-design/icons'; +import { Row, Col } from 'antd'; +import Icon from '@ant-design/icons'; +import ActionDelete from '@/assets/svg/action-delete.svg'; import styles from './index.module.less'; export interface IDisableUrlItem { @@ -18,22 +20,24 @@ function DisableUrlCard(props: IDisableUrlCardProps) { return null; } return ( -