Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion dashboard/src/components/shared/ConsoleDisplayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export default {
border-radius: 8px;
height: 100%;
overflow-y: auto;
overflow-x: auto;
padding: 16px;
}

Expand All @@ -379,7 +380,7 @@ export default {

:deep(.console-log-line--structured) {
display: grid;
grid-template-columns: max-content 10ch minmax(0, 1fr);
grid-template-columns: max-content max-content minmax(0, 1fr);
Comment thread
lingyun14beta marked this conversation as resolved.
column-gap: 8px;
Comment on lines +383 to 384
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Changing the second column to max-content removes the vertical alignment of log messages across different lines, which can make the console logs harder to scan. Additionally, the column-gap: 8px on line 384 causes an 8px indentation for log lines that do not have a prefix (e.g., logs starting directly with [INFO]), as the gap is still applied after the empty first column.

align-items: start;
white-space: normal;
Expand All @@ -400,6 +401,16 @@ export default {
overflow-wrap: anywhere;
}

@media (max-width: 768px) {
:deep(.console-log-line--structured) {
grid-template-columns: 1fr;
}
Comment thread
lingyun14beta marked this conversation as resolved.
Comment thread
lingyun14beta marked this conversation as resolved.
:deep(.console-log-prefix:empty),
:deep(.console-log-level:empty) {
display: none;
}
}

:deep(.fade-in) {
animation: fadeIn 0.3s;
}
Expand Down
Loading