Merge pull request #12217 from maxunbearable/fix/4970-adjusted-audit-height

Adjusted audit logs dialog codeblock height
This commit is contained in:
Igor Kulikov 2024-12-09 19:13:42 +02:00 committed by GitHub
commit 35d3e4dbd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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