We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597c52c commit 819d240Copy full SHA for 819d240
src/utils/startup-table.ts
@@ -92,7 +92,15 @@ export function generateStartupTable(sources: SourceDisplayInfo[]): string {
92
return hostDb.length;
93
})
94
);
95
- const modeWidth = 10;
+ const modeWidth = Math.max(
96
+ 10,
97
+ ...sources.map((s) => {
98
+ const modes: string[] = [];
99
+ if (s.isDemo) modes.push("DEMO");
100
+ if (s.readonly) modes.push("READ-ONLY");
101
+ return modes.join(" ").length;
102
+ })
103
+ );
104
105
// Total width: 2 for borders + content + 2 spaces padding per column + 2 separators
106
const totalWidth = 2 + idTypeWidth + 3 + hostDbWidth + 3 + modeWidth + 2;
0 commit comments