Revert "Added size fix for audit log"

This reverts commit 2823577c34be135fb11638f32a8ca52feb9e372d.
This commit is contained in:
mpetrov 2024-11-22 12:07:06 +02:00
parent c6ff132a24
commit 51bc17a3e3

View File

@ -105,14 +105,14 @@ export class AuditLogDetailsDialogComponent extends DialogComponent<AuditLogDeta
let newWidth = 600;
if (content && content.length > 0) {
const lines = content.split('\n');
newHeight = 18 * lines.length + 16;
newHeight = 16 * lines.length + 16;
let maxLineLength = 0;
lines.forEach((row) => {
const line = row.replace(/\t/g, ' ').replace(/\n/g, '');
const lineLength = line.length;
maxLineLength = Math.max(maxLineLength, lineLength);
});
newWidth = 10 * maxLineLength + 16;
newWidth = 8 * maxLineLength + 16;
}
// newHeight = Math.min(400, newHeight);
this.renderer.setStyle(editorElement, 'minHeight', newHeight.toString() + 'px');