Skip to content

Commit bcb0cbf

Browse files
author
李杰
committed
fix: compact file logs and shrink log viewer modal
1 parent b966ad7 commit bcb0cbf

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src-tauri/src/modules/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pub fn init_logger() {
223223
let file_layer = fmt::Layer::new()
224224
.with_writer(non_blocking)
225225
.with_ansi(false)
226-
.with_target(true)
226+
.with_target(false)
227227
.with_level(true)
228228
.with_timer(LocalTimer);
229229

src/components/LogViewerModal.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
}
44

55
.log-viewer-modal {
6-
width: min(1100px, calc(100vw - 96px));
7-
max-width: 1100px;
6+
width: min(920px, calc(100vw - 120px));
7+
max-width: 920px;
88
}
99

1010
.log-viewer-body {
@@ -67,8 +67,8 @@
6767
border: 1px solid var(--border);
6868
background: #0f172a;
6969
border-radius: 10px;
70-
min-height: 420px;
71-
max-height: 58vh;
70+
min-height: 360px;
71+
max-height: 52vh;
7272
overflow: auto;
7373
font-family: "SF Mono", "Menlo", "Consolas", "Monaco", monospace;
7474
}
@@ -84,7 +84,7 @@
8484
}
8585

8686
.log-viewer-placeholder {
87-
min-height: 420px;
87+
min-height: 360px;
8888
display: flex;
8989
align-items: center;
9090
justify-content: center;
@@ -114,7 +114,7 @@
114114
}
115115

116116
.log-viewer-content {
117-
min-height: 320px;
118-
max-height: 52vh;
117+
min-height: 280px;
118+
max-height: 48vh;
119119
}
120120
}

0 commit comments

Comments
 (0)