UI: adjusted audit logs dialog codeblock height

This commit is contained in:
mpetrov 2024-12-09 16:00:43 +02:00
parent 1b34617506
commit 6e019951cd

View File

@ -105,7 +105,7 @@ export class AuditLogDetailsDialogComponent extends DialogComponent<AuditLogDeta
let newWidth = 600; let newWidth = 600;
if (content && content.length > 0) { if (content && content.length > 0) {
const lines = content.split('\n'); const lines = content.split('\n');
newHeight = 17 * lines.length + 16; newHeight = 18 * lines.length + 16;
let maxLineLength = 0; let maxLineLength = 0;
lines.forEach((row) => { lines.forEach((row) => {
const line = row.replace(/\t/g, ' ').replace(/\n/g, ''); const line = row.replace(/\t/g, ' ').replace(/\n/g, '');