mirror of https://github.com/openspug/spug
U 优化文件管理器样式
parent
56b7a3e46d
commit
96521a5ef1
|
@ -28,6 +28,8 @@ class SSH:
|
|||
'password': password,
|
||||
'pkey': RSAKey.from_private_key(StringIO(pkey)) if isinstance(pkey, str) else pkey,
|
||||
'timeout': connect_timeout,
|
||||
'allow_agent': False,
|
||||
'look_for_keys': False,
|
||||
'banner_timeout': 30
|
||||
}
|
||||
|
||||
|
|
|
@ -70,8 +70,9 @@ class FileManager extends React.Component {
|
|||
key: 'action',
|
||||
render: info => info.kind === '-' ? (
|
||||
<Action>
|
||||
<Action.Button icon={<DownloadOutlined/>} onClick={() => this.handleDownload(info.name)}/>
|
||||
<Action.Button auth="host.console.del" danger icon={<DeleteOutlined/>}
|
||||
<Action.Button className={styles.drawerBtn} icon={<DownloadOutlined/>}
|
||||
onClick={() => this.handleDownload(info.name)}/>
|
||||
<Action.Button danger auth="host.console.del" className={styles.drawerBtn} icon={<DeleteOutlined/>}
|
||||
onClick={() => this.handleDelete(info.name)}/>
|
||||
</Action>
|
||||
) : null
|
||||
|
|
|
@ -23,16 +23,19 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #f0f0f0;
|
||||
|
||||
img {
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.hosts {
|
||||
:global(.ant-tree-node-content-wrapper) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
:global(.ant-tree) {
|
||||
background-color: #fafafa;
|
||||
height: calc(100vh - 98px);
|
||||
|
@ -45,6 +48,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
|
@ -58,6 +62,12 @@
|
|||
color: #666;
|
||||
}
|
||||
|
||||
.tabRender {
|
||||
user-select: none;
|
||||
padding: 8px 8px 8px 16px;
|
||||
margin: 0 -8px 0 -16px;
|
||||
}
|
||||
|
||||
:global(.ant-tabs-nav) {
|
||||
height: 42px;
|
||||
margin: 0;
|
||||
|
@ -98,8 +108,7 @@
|
|||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.tabRender {
|
||||
user-select: none;
|
||||
padding: 8px 8px 8px 16px;
|
||||
margin: 0 -8px 0 -16px;
|
||||
.drawerBtn {
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
}
|
Loading…
Reference in New Issue