diff --git a/spug_web/src/pages/config/setting/DiffConfig.js b/spug_web/src/pages/config/setting/DiffConfig.js index 0122988..fb9bcb8 100644 --- a/spug_web/src/pages/config/setting/DiffConfig.js +++ b/spug_web/src/pages/config/setting/DiffConfig.js @@ -8,6 +8,7 @@ import { observer } from 'mobx-react'; import { Modal, Table, Row, Col, Checkbox, Form, Button, Alert } from 'antd'; import http from 'libs/http'; import envStore from '../environment/store'; +import styles from './index.module.css'; import store from './store'; @observer @@ -73,9 +74,9 @@ class Record extends React.Component { onClick={() => this.handleEnvCheck(item)} style={{cursor: 'pointer', borderTop: index ? '1px solid #e8e8e8' : ''}}> x.id).includes(item.id)}/> - {item.key} - {item.name} - {item.desc} + {item.key} + {item.name} + {item.desc} ))} diff --git a/spug_web/src/pages/config/setting/Form.js b/spug_web/src/pages/config/setting/Form.js index 5f6fe88..0c59a40 100644 --- a/spug_web/src/pages/config/setting/Form.js +++ b/spug_web/src/pages/config/setting/Form.js @@ -9,6 +9,7 @@ import {Modal, Form, Input, Checkbox, Switch, Row, Col, message} from 'antd'; import http from 'libs/http'; import store from './store'; import envStore from '../environment/store' +import styles from './index.module.css'; @observer class ComForm extends React.Component { @@ -100,9 +101,9 @@ class ComForm extends React.Component { onClick={() => this.handleEnvCheck(item.id)} style={{cursor: 'pointer', borderTop: index ? '1px solid #e8e8e8' : ''}}> - {item.key} - {item.name} - {item.desc} + {item.key} + {item.name} + {item.desc} ))} diff --git a/spug_web/src/pages/config/setting/index.module.css b/spug_web/src/pages/config/setting/index.module.css index f929e6c..1bb0f29 100644 --- a/spug_web/src/pages/config/setting/index.module.css +++ b/spug_web/src/pages/config/setting/index.module.css @@ -22,4 +22,10 @@ .form { max-width: 320px; +} + +.ellipsis { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } \ No newline at end of file