Browse Source
Merge pull request #12217 from maxunbearable/fix/4970-adjusted-audit-height
Adjusted audit logs dialog codeblock height
pull/12227/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.ts
|
|
|
@ -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, ''); |
|
|
|
|