From 3ec9fbaa477d221f56a2a2ff75b9f4c2ae428295 Mon Sep 17 00:00:00 2001 From: Qi Shu Date: Thu, 25 Apr 2019 07:59:34 -0700 Subject: [PATCH] Fix history dialog styling (#7536) * Fix history dialog * more styling --- web-console/src/dialogs/history-dialog.scss | 22 ++++++++++----------- web-console/src/dialogs/history-dialog.tsx | 13 ++++++------ web-console/src/dialogs/snitch-dialog.tsx | 1 + 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/web-console/src/dialogs/history-dialog.scss b/web-console/src/dialogs/history-dialog.scss index 247e916e57e..11dd9c4ff9b 100644 --- a/web-console/src/dialogs/history-dialog.scss +++ b/web-console/src/dialogs/history-dialog.scss @@ -26,8 +26,11 @@ padding: 15px 15px 0 15px; - h3 { + .history-dialog-title { padding-left: 10px; + margin-bottom: 2px; + font-size: 24px; + font-weight: 600; } .no-record { @@ -39,7 +42,7 @@ .history-record-entries { - margin-bottom: 10px; + margin: 10px 0; max-height: 60vh; overflow: scroll; @@ -49,10 +52,6 @@ border-style: dot-dash; word-wrap: break-word; - hr { - margin: 5px 0 5px 0; - } - .bp3-card { padding-bottom: 10px; } @@ -60,14 +59,15 @@ .history-record-title { justify-content: space-between; display: flex; - - - } - - .history-record-comment-title { margin-bottom: 5px; + + .history-record-title-change { + font-weight: 600; + font-size: 16px; + } } + .json-collapse { button { position: relative; diff --git a/web-console/src/dialogs/history-dialog.tsx b/web-console/src/dialogs/history-dialog.tsx index b940d99c894..9a860e63884 100644 --- a/web-console/src/dialogs/history-dialog.tsx +++ b/web-console/src/dialogs/history-dialog.tsx @@ -16,14 +16,14 @@ * limitations under the License. */ -import { Card, Dialog } from '@blueprintjs/core'; +import {Card, Dialog, Divider, IDialogProps} from '@blueprintjs/core'; import * as React from 'react'; import { JSONCollapse } from '../components/json-collapse'; import './history-dialog.scss'; -interface HistoryDialogProps extends React.Props { +interface HistoryDialogProps extends IDialogProps { historyRecords: any; } @@ -46,7 +46,7 @@ export class HistoryDialog extends React.ComponentNo history records available; } else { content = <> -

History

+ History
{ historyRecords.map((record: any) => { @@ -57,10 +57,10 @@ export class HistoryDialog extends React.Component
-
Change
-

{formattedTime}

+ Change + {formattedTime}
-
+

{auditInfo.comment === '' ? '(No comment)' : auditInfo.comment}

diff --git a/web-console/src/dialogs/snitch-dialog.tsx b/web-console/src/dialogs/snitch-dialog.tsx index c6ef328860c..91b94e7599f 100644 --- a/web-console/src/dialogs/snitch-dialog.tsx +++ b/web-console/src/dialogs/snitch-dialog.tsx @@ -127,6 +127,7 @@ export class SnitchDialog extends React.Component