From c6ff132a245ac60fd336daaa7740325387e469f7 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Fri, 22 Nov 2024 12:07:06 +0200 Subject: [PATCH] Revert "adjusted sizing" This reverts commit 2a330fe5832e1548b2ba933858200c677a772159. --- .../audit-log/audit-log-details-dialog.component.ts | 4 ++-- .../home/components/event/event-content-dialog.component.ts | 4 ++-- .../lib/home-page/getting-started-widget.component.scss | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.ts b/ui-ngx/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.ts index 881961ed34..9d983919fc 100644 --- a/ui-ngx/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.ts @@ -105,14 +105,14 @@ export class AuditLogDetailsDialogComponent extends DialogComponent 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, ''); const lineLength = line.length; maxLineLength = Math.max(maxLineLength, lineLength); }); - newWidth = 9 * maxLineLength + 16; + newWidth = 10 * maxLineLength + 16; } // newHeight = Math.min(400, newHeight); this.renderer.setStyle(editorElement, 'minHeight', newHeight.toString() + 'px'); diff --git a/ui-ngx/src/app/modules/home/components/event/event-content-dialog.component.ts b/ui-ngx/src/app/modules/home/components/event/event-content-dialog.component.ts index 40cd3b6f3b..fb7b026914 100644 --- a/ui-ngx/src/app/modules/home/components/event/event-content-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/event/event-content-dialog.component.ts @@ -139,14 +139,14 @@ export class EventContentDialogComponent extends DialogComponent 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, ''); const lineLength = line.length; maxLineLength = Math.max(maxLineLength, lineLength); }); - newWidth = 9 * maxLineLength + 16; + newWidth = 10 * maxLineLength + 16; } // newHeight = Math.min(400, newHeight); this.renderer.setStyle(editorElement, 'minHeight', newHeight.toString() + 'px'); diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/home-page/getting-started-widget.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/home-page/getting-started-widget.component.scss index 2dcfdf7cd1..3e34cbdcd9 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/home-page/getting-started-widget.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/home-page/getting-started-widget.component.scss @@ -118,7 +118,7 @@ padding: 0; pre[class*=language-] { margin: 0; - padding: 9px 38px 9px 16px; + padding: 10px 38px 10px 16px; background: rgba(0, 0, 0, 0.03); border-radius: 6px; border: none; @@ -128,6 +128,7 @@ font-style: normal; font-weight: 400; font-size: 12px; + line-height: 16px; letter-spacing: 0.25px; color: rgba(0, 0, 0, 0.38); overflow: hidden;