U 优化展示效果

pull/418/head
vapao 2021-12-10 11:27:34 +08:00
parent 465065ea1f
commit d70fb8796b
4 changed files with 11 additions and 11 deletions

View File

@ -52,17 +52,13 @@
border: 1px solid #f0f0f0; border: 1px solid #f0f0f0;
background: #fff; background: #fff;
border-radius: 2px; border-radius: 2px;
padding: 24px;
:global(.ant-pagination) {
padding: 0 24px;
}
.toolbar { .toolbar {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: 64px; margin-bottom: 20px;
padding: 0 24px;
.title { .title {
flex: 1; flex: 1;

View File

@ -2,7 +2,7 @@
body { body {
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Microsoft YaHei, PingFang SC, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
overflow: hidden; overflow: hidden;
@ -18,7 +18,7 @@ div::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
} }
code { code {
font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace, Microsoft YaHei, PingFang SC; font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace, PingFang SC, Microsoft YaHei;
} }
.ant-form-item-extra { .ant-form-item-extra {

View File

@ -76,7 +76,7 @@ function TaskIndex() {
onClick={() => store.showHost = true}/> onClick={() => store.showHost = true}/>
) : ( ) : (
<Button icon={<PlusOutlined/>} onClick={() => store.showHost = true}> <Button icon={<PlusOutlined/>} onClick={() => store.showHost = true}>
从主机列表中选择 添加目标主机
</Button> </Button>
)} )}
</Form.Item> </Form.Item>
@ -87,8 +87,8 @@ function TaskIndex() {
style={{marginBottom: 12}} style={{marginBottom: 12}}
value={interpreter} value={interpreter}
onChange={e => setInterpreter(e.target.value)}> onChange={e => setInterpreter(e.target.value)}>
<Radio.Button value="sh">Shell</Radio.Button> <Radio.Button value="sh" style={{width: 80, textAlign: 'center'}}>Shell</Radio.Button>
<Radio.Button value="python">Python</Radio.Button> <Radio.Button value="python" style={{width: 80, textAlign: 'center'}}>Python</Radio.Button>
</Radio.Group> </Radio.Group>
<a href="https://spug.cc/docs/batch-exec" target="_blank" rel="noopener noreferrer" <a href="https://spug.cc/docs/batch-exec" target="_blank" rel="noopener noreferrer"
className={style.tips}><BulbOutlined/> 使用全局变量</a> className={style.tips}><BulbOutlined/> 使用全局变量</a>

View File

@ -21,6 +21,10 @@
color: #999; color: #999;
} }
.tips:hover {
color: #777;
}
.editor { .editor {
height: calc(100vh - 482px) !important; height: calc(100vh - 482px) !important;
} }