UI: adjusted audit logs dialog codeblock height
This commit is contained in:
parent
1b34617506
commit
6e019951cd
@ -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, '');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user