1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +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',
doc: 'Official document',
star: 'Star',
description: 'Linux server operation and maintenance management panel',
description: 'Linux Server Panel',
forum: 'Forum Help',
doc2: 'User Manual',
currentVersion: 'Version',

View File

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