Skip to content

Commit 398775f

Browse files
author
ssongliu
committed
style: Adjust the global interval style
1 parent c59105f commit 398775f

24 files changed

Lines changed: 60 additions & 56 deletions

File tree

frontend/src/components/app-status/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="app-status" v-if="data.isExist">
33
<el-card>
44
<div class="flex w-full flex-col gap-4 md:flex-row">
5-
<div class="flex flex-wrap gap-4">
5+
<div class="flex flex-wrap gap-4 ml-3">
66
<el-tag effect="dark" type="success">{{ data.app }}</el-tag>
77
<Status class="mt-0.5" :key="refresh" :status="data.status"></Status>
88
<el-tag>{{ $t('app.version') }}{{ data.version }}</el-tag>

frontend/src/components/layout-content/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ const showBack = computed(() => {
9393
@use '@/styles/mixins.scss' as *;
9494
9595
.content-container__app {
96-
margin-top: 20px;
96+
margin-top: 7px;
9797
}
9898
9999
.content-container__search {
100-
margin-top: 20px;
100+
margin-top: 7px;
101101
.el-card {
102102
--el-card-padding: 12px;
103103
}
@@ -121,7 +121,7 @@ const showBack = computed(() => {
121121
}
122122
123123
.content-container__main {
124-
margin-top: 20px;
124+
margin-top: 7px;
125125
}
126126
127127
.prompt {

frontend/src/layout/components/Sidebar/components/Logo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const goHome = () => {
4141
display: flex;
4242
align-items: center;
4343
justify-content: center;
44-
height: 55px;
44+
height: 49px;
4545
z-index: 1;
4646
img {
4747
object-fit: contain;

frontend/src/layout/components/Sidebar/index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
.el-menu-item {
88
border-radius: 4px;
99
background-color: var(--el-menu-item-bg-color);
10-
margin: 6px 0;
11-
height: 46px;
10+
margin: 7px 0;
11+
height: 42px;
1212
box-shadow: 0px 0px 4px rgba(0, 94, 235, 0.1);
1313
box-sizing: border-box;
1414

@@ -51,7 +51,7 @@
5151
.el-sub-menu__title {
5252
background-color: var(--el-menu-item-bg-color);
5353
box-shadow: 0 0 4px rgba(0, 94, 235, 0.1);
54-
margin: 6px 0;
54+
margin-top: 7px;
5555
height: 46px;
5656
border-radius: 4px;
5757
&:hover {

frontend/src/layout/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div :class="classObj" class="app-wrapper" v-loading="loading" :element-loading-text="loadingText" fullscreen>
33
<div v-if="classObj.mobile && classObj.openSidebar" class="drawer-bg" @click="handleClickOutside" />
44
<div class="app-sidebar" v-if="!globalStore.isFullScreen">
5-
<el-affix :offset="18" class="affix">
5+
<el-affix :offset="17" class="affix">
66
<el-tooltip
77
:content="menuStore.isCollapse ? $t('commons.button.expand') : $t('commons.button.collapse')"
88
>
@@ -180,7 +180,7 @@ onMounted(() => {
180180
overflow-x: hidden;
181181
}
182182
.app-main {
183-
padding: 20px;
183+
padding: 7px 20px;
184184
flex: 1;
185185
overflow: auto;
186186
}

frontend/src/styles/common.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ html {
144144
font-size: 12px;
145145

146146
.el-card {
147-
--el-card-padding: 12px;
147+
--el-card-padding: 9px;
148148

149149
.buttons {
150150
margin-left: 100px;
@@ -271,6 +271,10 @@ html {
271271
width: 200px !important;
272272
}
273273

274+
.card-interval {
275+
margin-top: 7px;
276+
}
277+
274278
.p-w-300 {
275279
width: 300px !important;
276280
}

frontend/src/views/ai/gpu/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{{ gpuInfo.cudaVersion }}
3434
</el-descriptions-item>
3535
</el-descriptions>
36-
<el-collapse v-model="activeNames" class="mt-5">
36+
<el-collapse v-model="activeNames" class="card-interval">
3737
<el-collapse-item v-for="item in gpuInfo.gpu" :key="item.index" :name="item.index">
3838
<template #title>
3939
<span class="name-class">{{ item.index + '. ' + item.productName }}</span>
@@ -152,7 +152,7 @@
152152
}}
153153
</el-descriptions-item>
154154
</el-descriptions>
155-
<div class="mt-5">
155+
<div class="card-interval">
156156
<span class="title-class">{{ $t('aiTools.gpu.process') }}</span>
157157
</div>
158158
<el-table :data="item.processes" v-if="item.processes?.length !== 0">
@@ -191,7 +191,7 @@
191191
{{ xpuInfo.driverVersion }}
192192
</el-descriptions-item>
193193
</el-descriptions>
194-
<el-collapse v-model="activeNames" class="mt-5">
194+
<el-collapse v-model="activeNames" class="card-interval">
195195
<el-collapse-item
196196
v-for="item in xpuInfo.xpu"
197197
:key="item.basic.deviceID"
@@ -226,7 +226,7 @@
226226
{{ item.basic.pciBdfAddress }}
227227
</el-descriptions-item>
228228
</el-descriptions>
229-
<div class="mt-5">
229+
<div class="card-interval">
230230
<span class="title-class">{{ $t('aiTools.gpu.process') }}</span>
231231
</div>
232232
<el-table :data="item.processes" v-if="item.processes?.length !== 0">

frontend/src/views/container/container/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div v-loading="loading">
33
<docker-status v-model:isActive="isActive" v-model:isExist="isExist" @search="search" />
44

5-
<div class="mt-5" v-if="isExist && isActive">
5+
<div class="card-interval" v-if="isExist && isActive">
66
<el-tag @click="searchWithStatus('all')" v-if="countItem.all" effect="plain" size="large">
77
{{ $t('commons.table.all') }} * {{ countItem.all }}
88
</el-tag>

frontend/src/views/container/dashboard/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/>
99

1010
<div v-if="isExist" :class="{ mask: !isActive }">
11-
<CardWithHeader :header="$t('menu.container')" class="mt-5">
11+
<CardWithHeader :header="$t('menu.container')" class="card-interval">
1212
<template #body>
1313
<span class="count" @click="goRouter('Container')">{{ countItem.containerCount }}</span>
1414
</template>
@@ -39,7 +39,7 @@
3939
</el-tag>
4040
</template>
4141
</CardWithHeader>
42-
<el-row :gutter="20" class="mt-5">
42+
<el-row :gutter="7" class="card-interval">
4343
<el-col :span="8">
4444
<CardWithHeader :header="$t('container.compose')">
4545
<template #body>
@@ -69,7 +69,7 @@
6969
</CardWithHeader>
7070
</el-col>
7171
</el-row>
72-
<el-row :gutter="20" class="mt-5">
72+
<el-row :gutter="7" class="card-interval">
7373
<el-col :span="8">
7474
<CardWithHeader :header="$t('container.imageRepo')">
7575
<template #body>
@@ -92,7 +92,7 @@
9292
</CardWithHeader>
9393
</el-col>
9494
</el-row>
95-
<CardWithHeader :header="$t('container.setting')" class="mt-5">
95+
<CardWithHeader :header="$t('container.setting')" class="card-interval">
9696
<template #body>
9797
<el-descriptions :column="1" border>
9898
<el-descriptions-item :label="$t('container.sockPath')">

frontend/src/views/container/setting/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
@search="search"
99
/>
1010

11-
<div v-if="isExist" class="app-status p-mt-20">
11+
<div v-if="isExist" class="app-status card-interval">
1212
<el-card>
1313
<div class="flex w-full flex-col gap-4 md:flex-row">
14-
<div class="flex flex-wrap gap-4">
14+
<div class="flex flex-wrap gap-4 ml-3">
1515
<el-tag class="float-left" effect="dark" type="success">Docker</el-tag>
1616
<Status class="mt-0.5" :status="isActive ? 'enable' : 'disable'" />
1717
<el-tag>{{ $t('app.version') }}: {{ form.version }}</el-tag>
@@ -32,7 +32,7 @@
3232
</el-card>
3333
</div>
3434

35-
<LayoutContent v-if="isExist" class="p-mt-20" :title="$t('container.setting')">
35+
<LayoutContent v-if="isExist" class="card-interval" :title="$t('container.setting')">
3636
<template #main>
3737
<el-radio-group v-model="confShowType" @change="changeMode">
3838
<el-radio-button value="base">{{ $t('database.baseConf') }}</el-radio-button>

0 commit comments

Comments
 (0)