File tree 24 files changed +60
-56
lines changed
24 files changed +60
-56
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" app-status" v-if =" data.isExist" >
3
3
<el-card >
4
4
<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 " >
6
6
<el-tag effect =" dark" type =" success" >{{ data.app }}</el-tag >
7
7
<Status class =" mt-0.5" :key =" refresh" :status =" data.status" ></Status >
8
8
<el-tag >{{ $t('app.version') }}{{ data.version }}</el-tag >
Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ const showBack = computed(() => {
93
93
@use ' @/styles/mixins.scss' as * ;
94
94
95
95
.content-container__app {
96
- margin-top : 20 px ;
96
+ margin-top : 7 px ;
97
97
}
98
98
99
99
.content-container__search {
100
- margin-top : 20 px ;
100
+ margin-top : 7 px ;
101
101
.el-card {
102
102
--el-card-padding : 12px ;
103
103
}
@@ -121,7 +121,7 @@ const showBack = computed(() => {
121
121
}
122
122
123
123
.content-container__main {
124
- margin-top : 20 px ;
124
+ margin-top : 7 px ;
125
125
}
126
126
127
127
.prompt {
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const goHome = () => {
41
41
display : flex ;
42
42
align-items : center ;
43
43
justify-content : center ;
44
- height : 55 px ;
44
+ height : 49 px ;
45
45
z-index : 1 ;
46
46
img {
47
47
object-fit : contain ;
Original file line number Diff line number Diff line change 7
7
.el-menu-item {
8
8
border-radius : 4px ;
9
9
background-color : var (--el-menu-item-bg-color );
10
- margin : 6 px 0 ;
11
- height : 46 px ;
10
+ margin : 7 px 0 ;
11
+ height : 42 px ;
12
12
box-shadow : 0px 0px 4px rgba (0 , 94 , 235 , 0.1 );
13
13
box-sizing : border-box ;
14
14
51
51
.el-sub-menu__title {
52
52
background-color : var (--el-menu-item-bg-color );
53
53
box-shadow : 0 0 4px rgba (0 , 94 , 235 , 0.1 );
54
- margin : 6 px 0 ;
54
+ margin-top : 7 px ;
55
55
height : 46px ;
56
56
border-radius : 4px ;
57
57
& :hover {
Original file line number Diff line number Diff line change 2
2
<div :class =" classObj" class =" app-wrapper" v-loading =" loading" :element-loading-text =" loadingText" fullscreen >
3
3
<div v-if =" classObj.mobile && classObj.openSidebar" class =" drawer-bg" @click =" handleClickOutside" />
4
4
<div class =" app-sidebar" v-if =" !globalStore.isFullScreen" >
5
- <el-affix :offset =" 18 " class =" affix" >
5
+ <el-affix :offset =" 17 " class =" affix" >
6
6
<el-tooltip
7
7
:content =" menuStore.isCollapse ? $t('commons.button.expand') : $t('commons.button.collapse')"
8
8
>
@@ -180,7 +180,7 @@ onMounted(() => {
180
180
overflow-x : hidden ;
181
181
}
182
182
.app-main {
183
- padding : 20px ;
183
+ padding : 7 px 20px ;
184
184
flex : 1 ;
185
185
overflow : auto ;
186
186
}
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ html {
144
144
font-size : 12px ;
145
145
146
146
.el-card {
147
- --el-card-padding : 12 px ;
147
+ --el-card-padding : 9 px ;
148
148
149
149
.buttons {
150
150
margin-left : 100px ;
@@ -271,6 +271,10 @@ html {
271
271
width : 200px !important ;
272
272
}
273
273
274
+ .card-interval {
275
+ margin-top : 7px ;
276
+ }
277
+
274
278
.p-w-300 {
275
279
width : 300px !important ;
276
280
}
Original file line number Diff line number Diff line change 33
33
{{ gpuInfo.cudaVersion }}
34
34
</el-descriptions-item >
35
35
</el-descriptions >
36
- <el-collapse v-model =" activeNames" class =" mt-5 " >
36
+ <el-collapse v-model =" activeNames" class =" card-interval " >
37
37
<el-collapse-item v-for =" item in gpuInfo.gpu" :key =" item.index" :name =" item.index" >
38
38
<template #title >
39
39
<span class =" name-class" >{{ item.index + '. ' + item.productName }}</span >
152
152
}}
153
153
</el-descriptions-item >
154
154
</el-descriptions >
155
- <div class =" mt-5 " >
155
+ <div class =" card-interval " >
156
156
<span class =" title-class" >{{ $t('aiTools.gpu.process') }}</span >
157
157
</div >
158
158
<el-table :data =" item.processes" v-if =" item.processes?.length !== 0" >
191
191
{{ xpuInfo.driverVersion }}
192
192
</el-descriptions-item >
193
193
</el-descriptions >
194
- <el-collapse v-model =" activeNames" class =" mt-5 " >
194
+ <el-collapse v-model =" activeNames" class =" card-interval " >
195
195
<el-collapse-item
196
196
v-for =" item in xpuInfo.xpu"
197
197
:key =" item.basic.deviceID"
226
226
{{ item.basic.pciBdfAddress }}
227
227
</el-descriptions-item >
228
228
</el-descriptions >
229
- <div class =" mt-5 " >
229
+ <div class =" card-interval " >
230
230
<span class =" title-class" >{{ $t('aiTools.gpu.process') }}</span >
231
231
</div >
232
232
<el-table :data =" item.processes" v-if =" item.processes?.length !== 0" >
Original file line number Diff line number Diff line change 2
2
<div v-loading =" loading" >
3
3
<docker-status v-model:isActive =" isActive" v-model:isExist =" isExist" @search =" search" />
4
4
5
- <div class =" mt-5 " v-if =" isExist && isActive" >
5
+ <div class =" card-interval " v-if =" isExist && isActive" >
6
6
<el-tag @click =" searchWithStatus('all')" v-if =" countItem.all" effect =" plain" size =" large" >
7
7
{{ $t('commons.table.all') }} * {{ countItem.all }}
8
8
</el-tag >
Original file line number Diff line number Diff line change 8
8
/>
9
9
10
10
<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 " >
12
12
<template #body >
13
13
<span class =" count" @click =" goRouter('Container')" >{{ countItem.containerCount }}</span >
14
14
</template >
39
39
</el-tag >
40
40
</template >
41
41
</CardWithHeader >
42
- <el-row :gutter =" 20 " class =" mt-5 " >
42
+ <el-row :gutter =" 7 " class =" card-interval " >
43
43
<el-col :span =" 8" >
44
44
<CardWithHeader :header =" $t('container.compose')" >
45
45
<template #body >
69
69
</CardWithHeader >
70
70
</el-col >
71
71
</el-row >
72
- <el-row :gutter =" 20 " class =" mt-5 " >
72
+ <el-row :gutter =" 7 " class =" card-interval " >
73
73
<el-col :span =" 8" >
74
74
<CardWithHeader :header =" $t('container.imageRepo')" >
75
75
<template #body >
92
92
</CardWithHeader >
93
93
</el-col >
94
94
</el-row >
95
- <CardWithHeader :header =" $t('container.setting')" class =" mt-5 " >
95
+ <CardWithHeader :header =" $t('container.setting')" class =" card-interval " >
96
96
<template #body >
97
97
<el-descriptions :column =" 1" border >
98
98
<el-descriptions-item :label =" $t('container.sockPath')" >
Original file line number Diff line number Diff line change 8
8
@search =" search"
9
9
/>
10
10
11
- <div v-if =" isExist" class =" app-status p-mt-20 " >
11
+ <div v-if =" isExist" class =" app-status card-interval " >
12
12
<el-card >
13
13
<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 " >
15
15
<el-tag class =" float-left" effect =" dark" type =" success" >Docker</el-tag >
16
16
<Status class =" mt-0.5" :status =" isActive ? 'enable' : 'disable'" />
17
17
<el-tag >{{ $t('app.version') }}: {{ form.version }}</el-tag >
32
32
</el-card >
33
33
</div >
34
34
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')" >
36
36
<template #main >
37
37
<el-radio-group v-model =" confShowType" @change =" changeMode" >
38
38
<el-radio-button value =" base" >{{ $t('database.baseConf') }}</el-radio-button >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div v-if =" recordShow" v-loading =" loading" >
3
- <div class =" app-status p-mt-20 " >
3
+ <div class =" app-status card-interval " >
4
4
<el-card >
5
5
<div class =" flex w-full flex-col gap-4 md:flex-row" >
6
- <div class =" flex flex-wrap gap-4" >
6
+ <div class =" flex flex-wrap gap-4 ml-3 " >
7
7
<el-popover
8
8
v-if =" dialogData.rowData.name.length >= 15"
9
9
placement =" top-start"
Original file line number Diff line number Diff line change 3
3
<div class =" app-status mt-5" v-if =" currentDB?.from === 'remote'" >
4
4
<el-card >
5
5
<div class =" flex w-full flex-col gap-4 md:flex-row" >
6
- <div class =" flex flex-wrap gap-4" >
6
+ <div class =" flex flex-wrap gap-4 ml-3 " >
7
7
<el-tag class =" float-left" effect =" dark" type =" success" >
8
8
{{ currentDB?.type === 'mysql' ? 'Mysql' : 'MariaDB' }}
9
9
</el-tag >
Original file line number Diff line number Diff line change 3
3
<div class =" app-status mt-5" v-if =" currentDB?.from === 'remote'" >
4
4
<el-card >
5
5
<div class =" flex w-full flex-col gap-4 md:flex-row" >
6
- <div class =" flex flex-wrap gap-4" >
6
+ <div class =" flex flex-wrap gap-4 ml-3 " >
7
7
<el-tag class =" float-left" effect =" dark" type =" success" >PostgreSQL</el-tag >
8
8
<el-tag >{{ $t('app.version') }}: {{ currentDB?.version }}</el-tag >
9
9
</div >
Original file line number Diff line number Diff line change 3
3
<div class =" app-status mt-5" v-if =" currentDB && currentDB.from === 'remote'" >
4
4
<el-card >
5
5
<div class =" flex w-full flex-col gap-4 md:flex-row" >
6
- <div class =" flex flex-wrap gap-4" >
6
+ <div class =" flex flex-wrap gap-4 ml-3 " >
7
7
<el-tag class =" float-left" effect =" dark" type =" success" >Redis</el-tag >
8
8
<el-tag >{{ $t('app.version') }}: {{ currentDB?.version }}</el-tag >
9
9
</div >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <CardWithHeader :header =" $t('app.app')" class =" mt-5 " :loading =" loading" >
3
+ <CardWithHeader :header =" $t('app.app')" class =" card-interval " :loading =" loading" >
4
4
<template #header-r >
5
5
<el-popover placement =" left" :width =" 226" trigger =" click" >
6
6
<el-input size =" small" v-model =" filter" clearable @input =" loadOption()" />
23
23
</el-popover >
24
24
</template >
25
25
<template #body >
26
- <el-scrollbar height =" 545px " class =" moz-height" >
26
+ <el-scrollbar height =" 531px " class =" moz-height" >
27
27
<div class =" h-app-card" v-for =" (app, index) in apps" :key =" index" >
28
28
<el-row :gutter =" 5" >
29
29
<el-col :span =" 5" >
Original file line number Diff line number Diff line change 21
21
22
22
<el-alert
23
23
v-if =" !isSafety && globalStore.showEntranceWarn"
24
- style = " margin-top : 20 px "
24
+ class = " card-interval "
25
25
type =" warning"
26
26
@close =" hideEntrance"
27
27
>
40
40
</template >
41
41
</el-alert >
42
42
43
- <el-row :gutter =" 20 " style = " margin-top : 20 px " >
43
+ <el-row :gutter =" 7 " class = " card-interval " >
44
44
<el-col :xs =" 24" :sm =" 24" :md =" 16" :lg =" 16" :xl =" 16" >
45
45
<CardWithHeader :header =" $t('menu.home')" height =" 166px" >
46
46
<template #body >
82
82
</div >
83
83
</template >
84
84
</CardWithHeader >
85
- <CardWithHeader :header =" $t('commons.table.status')" style = " margin-top : 20 px " >
85
+ <CardWithHeader :header =" $t('commons.table.status')" class = " card-interval " >
86
86
<template #body >
87
87
<Status ref =" statusRef" style =" margin-bottom : 33px " />
88
88
</template >
89
89
</CardWithHeader >
90
- <CardWithHeader :header =" $t('menu.monitor')" style = " margin-top : 20 px ; margin-bottom : 20 px " >
90
+ <CardWithHeader :header =" $t('menu.monitor')" class = " card-interval " >
91
91
<template #header-r >
92
92
<el-radio-group
93
93
style =" float : right ; margin-left : 5px "
253
253
</template >
254
254
</CardWithHeader >
255
255
256
- <AppLauncher ref =" appRef" style = " margin-top : 20 px " />
256
+ <AppLauncher ref =" appRef" class = " card-interval " />
257
257
</el-col >
258
258
</el-row >
259
259
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" app-status" style = " margin-top : 20 px " v-if =" baseInfo.isExist" >
2
+ <div class =" app-status card-interval " v-if =" baseInfo.isExist" >
3
3
<el-card >
4
4
<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 " >
6
6
<el-tag effect =" dark" type =" success" >{{ baseInfo.name }}</el-tag >
7
7
<Status class =" mt-0.5" :status =" baseInfo.isActive ? 'enable' : 'disable'" />
8
8
<el-tag >{{ $t('app.version') }}: {{ baseInfo.version }}</el-tag >
Original file line number Diff line number Diff line change 19
19
</div >
20
20
</el-card >
21
21
</div >
22
- <el-row :gutter =" 20 " style = " margin-top : 20 px " >
22
+ <el-row :gutter =" 7 " class = " card-interval " >
23
23
<el-col :span =" 24" >
24
24
<el-card style =" overflow : inherit " >
25
25
<template #header >
51
51
</el-card >
52
52
</el-col >
53
53
</el-row >
54
- <el-row :gutter =" 20 " style = " margin-top : 20 px " >
54
+ <el-row :gutter =" 7 " class = " card-interval " >
55
55
<el-col :xs =" 24" :sm =" 24" :md =" 12" :lg =" 12" :xl =" 12" >
56
56
<el-card style =" overflow : inherit " >
57
57
<template #header >
113
113
</el-card >
114
114
</el-col >
115
115
</el-row >
116
- <el-row :gutter =" 20 " style = " margin-top : 20 px " >
116
+ <el-row :gutter =" 7 " class = " card-interval " >
117
117
<el-col :xs =" 24" :sm =" 24" :md =" 12" :lg =" 12" :xl =" 12" >
118
118
<el-card style =" overflow : inherit " >
119
119
<template #header >
@@ -570,7 +570,7 @@ onMounted(() => {
570
570
571
571
<style scoped lang="scss">
572
572
.content-container__search {
573
- margin-top : 20 px ;
573
+ margin-top : 7 px ;
574
574
.el-card {
575
575
--el-card-padding : 12px ;
576
576
}
Original file line number Diff line number Diff line change 2
2
<div v-loading =" loading" >
3
3
<FireRouter />
4
4
5
- <div class =" app-status mt-5 " >
5
+ <div class =" app-status card-interval " >
6
6
<el-card >
7
7
<div class =" flex w-full flex-col gap-4 md:flex-row" >
8
- <div class =" flex flex-wrap gap-4" >
8
+ <div class =" flex flex-wrap gap-4 ml-3 " >
9
9
<el-tag class =" float-left" effect =" dark" type =" success" >SSH</el-tag >
10
10
<Status class =" mt-0.5" :status =" form.isActive ? 'enable' : 'disable'" :msg =" form.message" />
11
11
</div >
Original file line number Diff line number Diff line change 2
2
<div >
3
3
<el-tabs
4
4
type =" card"
5
- class =" terminal-tabs"
6
- style =" background-color : var (--panel-terminal-tag-bg-color ); margin-top : 20 px "
5
+ class =" terminal-tabs card-interval "
6
+ style =" background-color : var (--panel-terminal-tag-bg-color )"
7
7
v-model =" terminalValue"
8
8
:before-leave =" beforeLeave"
9
9
@tab-change =" quickCmd = ''"
@@ -246,13 +246,13 @@ const cleanTimer = () => {
246
246
};
247
247
248
248
const loadHeight = () => {
249
- return globalStore .openMenuTabs ? ' 269px ' : ' 229px ' ;
249
+ return globalStore .openMenuTabs ? ' 230px ' : ' 190px ' ;
250
250
};
251
251
const loadEmptyHeight = () => {
252
- return globalStore .openMenuTabs ? ' 240px ' : ' 200px ' ;
252
+ return globalStore .openMenuTabs ? ' 201px ' : ' 156px ' ;
253
253
};
254
254
const loadFullScreenHeight = () => {
255
- return globalStore .openMenuTabs ? ' 66px ' : ' 90px ' ;
255
+ return globalStore .openMenuTabs ? ' 105px ' : ' 60px ' ;
256
256
};
257
257
258
258
const handleTabsRemove = (targetName : string , action : ' remove' | ' add' ) => {
You can’t perform that action at this time.
0 commit comments