169
169
<el-col :xs =" 24" :sm =" 24" :md =" 8" :lg =" 8" :xl =" 8" >
170
170
<CardWithHeader :header =" $t('home.systemInfo')" >
171
171
<template #body >
172
- <el-scrollbar >
173
- <el-descriptions :column =" 1" class = " h-systemInfo " border >
172
+ <div class = " h-systemInfo " >
173
+ <el-descriptions :column =" 1" border >
174
174
<el-descriptions-item class-name =" system-content" label-class-name =" system-label" >
175
175
<template #label >
176
176
<span >{{ $t('home.hostname') }}</span >
177
177
</template >
178
- {{ baseInfo.hostname }}
178
+ <el-tooltip
179
+ v-if =" baseInfo.hostname.length > 30"
180
+ :content =" baseInfo.hostname"
181
+ placement =" bottom"
182
+ >
183
+ {{ baseInfo.hostname.substring(0, 27) + '...' }}
184
+ </el-tooltip >
185
+ <span v-else >{{ baseInfo.hostname }}</span >
179
186
</el-descriptions-item >
180
187
<el-descriptions-item class-name =" system-content" label-class-name =" system-label" >
181
188
<template #label >
191
198
<template #label >
192
199
<span >{{ $t('home.kernelVersion') }}</span >
193
200
</template >
194
- {{ baseInfo.kernelVersion }}
201
+ <el-tooltip
202
+ v-if =" baseInfo.kernelVersion.length > 30"
203
+ :content =" baseInfo.kernelVersion"
204
+ placement =" bottom"
205
+ >
206
+ {{ baseInfo.kernelVersion.substring(0, 27) + '...' }}
207
+ </el-tooltip >
208
+ <span v-else >{{ baseInfo.kernelVersion }}</span >
195
209
</el-descriptions-item >
196
210
<el-descriptions-item class-name =" system-content" label-class-name =" system-label" >
197
211
<template #label >
232
246
{{ loadUpTime(currentInfo.uptime) }}
233
247
</el-descriptions-item >
234
248
</el-descriptions >
235
- </el-scrollbar >
249
+ </div >
236
250
</template >
237
251
</CardWithHeader >
238
252
@@ -681,7 +695,8 @@ onBeforeUnmount(() => {
681
695
682
696
.h-systemInfo {
683
697
margin-left : 18px ;
684
- height : 276px ;
698
+ height : 296px ;
699
+ overflow : auto ;
685
700
}
686
701
@-moz-document url-prefix() {
687
702
.h-systemInfo {
@@ -695,8 +710,10 @@ onBeforeUnmount(() => {
695
710
color : var (--panel-text-color );
696
711
border : none !important ;
697
712
background : none !important ;
698
- width : fit-content !important ;
699
- white-space : nowrap !important ;
713
+ max-width : 150px !important ;
714
+ white-space : nowrap ;
715
+ overflow : hidden ;
716
+ text-overflow : ellipsis ;
700
717
}
701
718
702
719
.system-content {
0 commit comments