Skip to content

Commit

Permalink
optimize: 页面更加紧凑一些,特别是列表配置项。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Sep 9, 2024
1 parent d417de4 commit e9f9e83
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gui/src/view/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,6 @@ export default {
}
div.ant-form-item {
margin-bottom: 10px;
margin-bottom: 9px;
}
</style>
4 changes: 2 additions & 2 deletions packages/gui/src/view/pages/server.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<a-button style="margin-left:8px" type="primary" icon="plus" @click="addWhiteList()"/>
</a-col>
</a-row>
<a-row :gutter="10" style="margin-top: 10px" v-for="(item,index) of whiteList" :key='index'>
<a-row :gutter="10" style="margin-top: 5px" v-for="(item,index) of whiteList" :key='index'>
<a-col :span="19">
<a-input :disabled="item.value === false" v-model="item.key"></a-input>
</a-col>
Expand Down Expand Up @@ -109,7 +109,7 @@
<a-button style="margin-left:8px" type="primary" icon="plus" @click="addDnsMapping()"/>
</a-col>
</a-row>
<a-row :gutter="10" style="margin-top: 10px" v-for="(item,index) of dnsMappings" :key='index'>
<a-row :gutter="10" style="margin-top: 5px" v-for="(item,index) of dnsMappings" :key='index'>
<a-col :span="14">
<a-input :disabled="item.value === false" v-model="item.key"></a-input>
</a-col>
Expand Down
4 changes: 4 additions & 0 deletions packages/gui/src/view/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ ol{
margin-bottom: 3px;
}

.ant-form-item-control {
line-height: 37px;
}

hr {
border-width: 2px 0 0 0;
border-style: solid;
Expand Down
3 changes: 3 additions & 0 deletions packages/gui/src/view/style/theme/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ $dark-input: #777; //输入框:背景色
.ant-radio-button-wrapper:not(:first-child)::before {
background-color: #666;
}
.ant-divider {
background: $dark-bd;
}

/* 左侧 */
/** 背景色 **/
Expand Down

0 comments on commit e9f9e83

Please sign in to comment.