Skip to content

Commit

Permalink
perf: 优化错误日志超长下的显示 (#4711)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored and ssongliu committed Apr 26, 2024
1 parent e06e6e9 commit 3834703
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lang/modules/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,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',
Expand Down
20 changes: 20 additions & 0 deletions frontend/src/views/app-store/installed/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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'), {
Expand Down Expand Up @@ -621,4 +636,9 @@ onUnmounted(() => {
flex: 0 0 100%;
}
}
.app-error {
max-height: 500px;
overflow-y: auto;
}
</style>

0 comments on commit 3834703

Please sign in to comment.