diff --git a/ui/src/components/yaml/styles.module.less b/ui/src/components/yaml/styles.module.less index de6bdedd..3a7ad7b6 100644 --- a/ui/src/components/yaml/styles.module.less +++ b/ui/src/components/yaml/styles.module.less @@ -220,9 +220,11 @@ justify-content: space-between; align-items: center; padding: 12px; - background: linear-gradient(135deg, - rgba(147, 112, 219, 0.15) 0%, - rgba(43, 29, 60, 0.95) 100%); + background: linear-gradient( + 135deg, + rgba(147, 112, 219, 0.15) 0%, + rgba(43, 29, 60, 0.95) 100% + ); border-bottom: 1px solid rgba(147, 112, 219, 0.2); border-radius: 12px 12px 0 0; color: #e6e6fa; @@ -364,8 +366,6 @@ box-sizing: border-box; word-wrap: break-word; - - .yaml_content_diagnosisLoading { height: 100%; display: flex; @@ -608,10 +608,12 @@ hr { border: none; height: 1px; - background: linear-gradient(to right, - rgba(147, 112, 219, 0.1), - rgba(147, 112, 219, 0.4), - rgba(147, 112, 219, 0.1)); + background: linear-gradient( + to right, + rgba(147, 112, 219, 0.1), + rgba(147, 112, 219, 0.4), + rgba(147, 112, 219, 0.1) + ); margin: 24px 0; } } @@ -710,7 +712,6 @@ } @keyframes sparkle { - 0%, 100% { filter: drop-shadow(0 0 4px rgba(147, 112, 219, 0.4)); diff --git a/ui/src/pages/insightDetail/components/eventAggregator/styles.module.less b/ui/src/pages/insightDetail/components/eventAggregator/styles.module.less index b5802c17..5b7f5fc8 100644 --- a/ui/src/pages/insightDetail/components/eventAggregator/styles.module.less +++ b/ui/src/pages/insightDetail/components/eventAggregator/styles.module.less @@ -247,18 +247,26 @@ flex-direction: column; backdrop-filter: blur(8px); z-index: 10; - background-image: radial-gradient(ellipse 489px 674px at 6px 0px, + background-image: radial-gradient( + ellipse 489px 674px at 6px 0px, #fcf8ff 0%, - #ebd7ff 100%), - radial-gradient(ellipse 587px 672px at 433px 513px, + #ebd7ff 100% + ), + radial-gradient( + ellipse 587px 672px at 433px 513px, #dae4ffa1 0%, - #e1d2e704 100%), - radial-gradient(ellipse 346px 396px at 15px 506px, + #e1d2e704 100% + ), + radial-gradient( + ellipse 346px 396px at 15px 506px, #dae4ffa3 0%, - #e1d2e704 100%), - radial-gradient(ellipse 583px 668px at 436px 8px, + #e1d2e704 100% + ), + radial-gradient( + ellipse 583px 668px at 436px 8px, #f8f5ff 0%, - #f3e7f904 100%); + #f3e7f904 100% + ); animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); .events_content_diagnosisHeader { @@ -482,7 +490,6 @@ } } - .events_content_diagnosisLoading { display: flex; flex-direction: column; @@ -642,10 +649,12 @@ hr { border: none; height: 1px; - background: linear-gradient(to right, - rgba(147, 112, 219, 0.1), - rgba(147, 112, 219, 0.4), - rgba(147, 112, 219, 0.1)); + background: linear-gradient( + to right, + rgba(147, 112, 219, 0.1), + rgba(147, 112, 219, 0.4), + rgba(147, 112, 219, 0.1) + ); margin: 24px 0; } } @@ -738,10 +747,12 @@ left: 0; width: 100%; height: 100%; - background: linear-gradient(120deg, - transparent, - rgba(255, 255, 255, 0.6), - transparent); + background: linear-gradient( + 120deg, + transparent, + rgba(255, 255, 255, 0.6), + transparent + ); transform: translateX(-100%); } @@ -767,7 +778,7 @@ .ant-table { background: transparent; - .ant-table-thead>tr>th { + .ant-table-thead > tr > th { background: #fafafa; font-weight: 500; border-bottom: 1px solid #f0f0f0; @@ -775,7 +786,7 @@ } .ant-table-tbody { - >tr { + > tr { transition: all 0.2s ease; &:hover { @@ -784,7 +795,7 @@ z-index: 1; } - >td { + > td { transition: background-color 0.2s ease; } } @@ -831,11 +842,13 @@ .ant-skeleton-paragraph { margin-bottom: 0; - >li { - background: linear-gradient(90deg, - #f5f5f5 25%, - #e8e8e8 37%, - #f5f5f5 63%); + > li { + background: linear-gradient( + 90deg, + #f5f5f5 25%, + #e8e8e8 37%, + #f5f5f5 63% + ); background-size: 400% 100%; animation: ant-skeleton-loading 1.4s ease infinite; } diff --git a/ui/src/pages/insightDetail/components/exceptionList/index.tsx b/ui/src/pages/insightDetail/components/exceptionList/index.tsx index ae4beef8..40578802 100644 --- a/ui/src/pages/insightDetail/components/exceptionList/index.tsx +++ b/ui/src/pages/insightDetail/components/exceptionList/index.tsx @@ -7,6 +7,7 @@ import { DownOutlined, PoweroffOutlined, CloseOutlined, + RedoOutlined, } from '@ant-design/icons' import Loading from '@/components/loading' import { SEVERITY_MAP } from '@/utils/constants' @@ -79,8 +80,6 @@ const ExceptionList = ({ function handleClick() { setIsShowList(!isShowList) } - const iconStyle = { marginLeft: 5, color: '#646566' } - const debouncedInterpret = useCallback( debounce(async () => { try { @@ -364,20 +363,28 @@ const ExceptionList = ({ /> )} - -
- {isShowList ? ( - - {t('ExceptionList.Collapse')} - - - ) : ( - - {t('ExceptionList.Expand')} - - - )} -
+ +