Browse Source

style: 服务版本详情链接添加样式

pull/135/head
cp3hnu 1 year ago
parent
commit
079eac87dc
2 changed files with 9 additions and 2 deletions
  1. +6
    -0
      react-ui/src/pages/ModelDeployment/components/BasicInfo/index.less
  2. +3
    -2
      react-ui/src/pages/ModelDeployment/components/BasicInfo/index.tsx

+ 6
- 0
react-ui/src/pages/ModelDeployment/components/BasicInfo/index.less View File

@@ -0,0 +1,6 @@
.basic-info {
a:hover {
text-decoration: underline @underline-color;
text-underline-offset: 3px;
}
}

+ 3
- 2
react-ui/src/pages/ModelDeployment/components/BasicInfo/index.tsx View File

@@ -5,6 +5,7 @@ import { formatDate } from '@/utils/date';
import { Link } from '@umijs/max';
import { Col, Row } from 'antd';
import ServiceRunStatusCell from '../ModelDeployStatusCell';
import styles from './index.less';

type BasicInfoProps = {
info?: ServiceVersionData;
@@ -15,7 +16,7 @@ function BasicInfo({ info }: BasicInfoProps) {

// 格式化环境变量
const formatEnvText = () => {
if (!info?.env_variables) {
if (!info?.env_variables || Object.keys(info.env_variables).length === 0) {
return '--';
}
const env = info.env_variables;
@@ -53,7 +54,7 @@ function BasicInfo({ info }: BasicInfoProps) {
};

return (
<div>
<div className={styles['basic-info']}>
<Row gutter={40} style={{ marginBottom: '20px' }}>
<Col span={10}>
<LabelValue label="服务名称:" value={info?.service_name}></LabelValue>


Loading…
Cancel
Save