优化面板样式

This commit is contained in:
hanhh
2021-07-17 22:20:08 +08:00
parent 20ddb5a3cf
commit ecdfdff50d
9 changed files with 80 additions and 30 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ export default {
},
{
path: '/script',
name: '查看脚本',
name: '脚本管理',
icon: <FormOutlined />,
component: '@/pages/script/index',
},
@@ -50,7 +50,7 @@ export default {
},
{
path: '/log',
name: '日志',
name: '任务日志',
icon: <FolderOutlined />,
component: '@/pages/log/index',
},
+39 -4
View File
@@ -71,6 +71,34 @@ body {
}
}
.ant-tree {
.ant-tree-treenode {
width: 100%;
padding-right: 8px !important;
}
.ant-tree-node-content-wrapper {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
}
.ant-select-tree {
.ant-select-tree-treenode {
width: 100%;
padding-right: 8px !important;
}
.ant-select-tree-node-content-wrapper {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
@@ -91,17 +119,17 @@ input:-webkit-autofill:active {
.ql-container-wrapper {
&.crontab-wrapper,
&.log-wrapper {
&.log-wrapper,
&.env-wrapper,
&.config-wrapper {
.ant-pro-grid-content.wide .ant-pro-page-container-children-content {
height: calc(100vh - 184px);
height: calc(100vh - var(--vh-offset, 0px) - 184px);
margin-left: 0;
margin-right: 0;
}
.CodeMirror {
height: calc(100vh - 216px);
height: calc(100vh - var(--vh-offset, 0px) - 216px);
width: calc(100vw - 32px);
width: calc(100vw - 80px);
}
}
.CodeMirror {
@@ -114,3 +142,10 @@ input:-webkit-autofill:active {
max-width: 250px !important;
}
}
@media (min-width: 768px) {
.ant-layout-content.ant-pro-basicLayout-content.ant-pro-basicLayout-has-header {
min-height: calc(100vh - 72px);
min-height: calc(100vh - var(--vh-offset, 0px) - 72px);
}
}