Skip to content

Commit e8e0581

Browse files
committed
[Optimize]Connect样式优化
1 parent 58a421c commit e8e0581

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

km-console/packages/layout-clusters-fe/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"optimize-css-assets-webpack-plugin": "^5.0.1",
109109
"prettier": "2.3.2",
110110
"progress-bar-webpack-plugin": "^1.12.1",
111+
"pubsub-js": "^1.9.4",
111112
"query-string": "^7.0.1",
112113
"react-refresh": "^0.10.0",
113114
"react-router-dom": "5.2.1",

km-console/packages/layout-clusters-fe/src/components/CardBar/ConnectDetailCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const ConnectDetailCard = (props: { record: any }) => {
4949
return (
5050
<>
5151
{
52-
<span style={{ fontFamily: 'HelveticaNeue-Medium', fontSize: 32, color: '#212529' }}>
52+
<span style={{ fontFamily: 'HelveticaNeue-Medium', fontSize: 28, color: '#212529' }}>
5353
{Utils.firstCharUppercase(type) || '-'}
5454
</span>
5555
}
@@ -64,7 +64,7 @@ const ConnectDetailCard = (props: { record: any }) => {
6464
return (
6565
<>
6666
{
67-
<span style={{ fontFamily: 'HelveticaNeue-Medium', fontSize: 32, color: stateEnum[state].color }}>
67+
<span style={{ fontFamily: 'HelveticaNeue-Medium', fontSize: 28, color: stateEnum[state].color }}>
6868
{Utils.firstCharUppercase(state) || '-'}
6969
</span>
7070
}

km-console/packages/layout-clusters-fe/src/pages/Connect/index.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@
185185

186186
.operate-connector-drawer-use-json {
187187
.CodeMirror.cm-s-default {
188-
height: calc(100vh - 146px);
188+
height: calc(100vh - 196px);
189189
}
190190
.dcloud-form-item {
191+
margin-top: 16px;
191192
margin-bottom: 0 !important;
192193
}
193194
}

km-console/packages/layout-clusters-fe/src/pages/ConsumerGroup/ResetOffsetDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useParams } from 'react-router-dom';
44
import EditTable from '../TestingProduce/component/EditTable';
55
import Api from '@src/api/index';
66
import moment from 'moment';
7-
import PubSub from 'pubsub-js'
7+
import PubSub from 'pubsub-js';
88

99
const CustomSelectResetTime = (props: { value?: string; onChange?: (val: Number | String) => void }) => {
1010
const { value, onChange } = props;

km-console/packages/layout-clusters-fe/src/pages/MirrorMaker2/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185

186186
.operate-connector-drawer-use-json {
187187
.CodeMirror.cm-s-default {
188-
height: calc(100vh - 146px);
188+
height: calc(100vh - 196px);
189189
}
190190
.dcloud-form-item {
191191
margin-bottom: 0 !important;

0 commit comments

Comments
 (0)