1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-16 10:44:44 +08:00

perf: 优化错误日志超长下的显示 (#4711)

This commit is contained in:
zhengkunwang 2024-04-25 19:09:13 +08:00 committed by GitHub
parent ad6a1ac465
commit 6a30ccd5dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View File

@ -1483,7 +1483,7 @@ const message = {
issue: 'Feedback', issue: 'Feedback',
doc: 'Official document', doc: 'Official document',
star: 'Star', star: 'Star',
description: 'Linux server operation and maintenance management panel', description: 'Linux Server Panel',
forum: 'Forum Help', forum: 'Forum Help',
doc2: 'User Manual', doc2: 'User Manual',
currentVersion: 'Version', currentVersion: 'Version',

View File

@ -125,12 +125,16 @@
:width="400" :width="400"
trigger="hover" trigger="hover"
:content="installed.message" :content="installed.message"
:popper-options="options"
> >
<template #reference> <template #reference>
<el-button link type="danger"> <el-button link type="danger">
<el-icon><Warning /></el-icon> <el-icon><Warning /></el-icon>
</el-button> </el-button>
</template> </template>
<div class="app-error">
{{ installed.message }}
</div>
</el-popover> </el-popover>
</span> </span>
<span class="ml-1"> <span class="ml-1">
@ -362,6 +366,17 @@ const mode = ref('installed');
const moreTag = ref(''); const moreTag = ref('');
const language = getLanguage(); const language = getLanguage();
const appDetail = ref(); const appDetail = ref();
const options = {
modifiers: [
{
name: 'flip',
options: {
padding: 5,
fallbackPlacements: ['bottom-start', 'top-start', 'right', 'left'],
},
},
],
};
const sync = () => { const sync = () => {
ElMessageBox.confirm(i18n.global.t('app.syncAllAppHelper'), i18n.global.t('app.sync'), { ElMessageBox.confirm(i18n.global.t('app.syncAllAppHelper'), i18n.global.t('app.sync'), {
@ -621,4 +636,9 @@ onUnmounted(() => {
flex: 0 0 100%; flex: 0 0 100%;
} }
} }
.app-error {
max-height: 500px;
overflow-y: auto;
}
</style> </style>