Explorar o código

数据链接卡片数据类型样式调整

zhuth %!s(int64=6) %!d(string=hai) anos
pai
achega
2433a5cffc

+ 1 - 1
src/components/dataConnect/list.jsx

@@ -171,7 +171,7 @@ class DataConnect extends React.Component {
                     }
                     actions={[
                         <div>
-                            {l.dbType === 'file' ? <Icon type='file' /> : <div><Icon type='database' />{l.dbType[0].toUpperCase() + l.dbType.slice(1)}</div>}
+                            {l.dbType === 'file' ? <Icon type='file' /> : <div className='database-type-wrap'><div><Icon type='database' /></div>{l.dbType[0].toUpperCase() + l.dbType.slice(1)}</div>}
                         </div>,
                         <Dropdown overlay={this.generateOperationMenu(l)} trigger={['click']}>
                             <Icon style={{ fontSize: '24px' }} type="ellipsis" theme="outlined" />

+ 4 - 0
src/components/dataConnect/list.less

@@ -86,6 +86,10 @@
                             background: #fff;
                             li {
                                 margin: 4px 0;
+                                .database-type-wrap {
+                                    display: flex;
+                                    padding: 0 4px;
+                                }
                             }
                         }
                     }