mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 06:57:16 +02:00
feat(core): use real console width in console banner
This commit is contained in:
@@ -14,7 +14,8 @@ export default class LogService {
|
||||
|
||||
banner(message: string | undefined) {
|
||||
if (!message) return;
|
||||
const maxContent = 76; // 80 - 4 (border + padding)
|
||||
const termWidth = (typeof process !== "undefined" && process.stdout?.columns) || 80;
|
||||
const maxContent = termWidth - 4; // border + padding
|
||||
const words = message.split(" ");
|
||||
const lines: string[] = [];
|
||||
let current = "";
|
||||
|
||||
Reference in New Issue
Block a user