From 53339af46b6797a0dfe3b93d12d0f2c5bf4821b1 Mon Sep 17 00:00:00 2001 From: sylenien Date: Fri, 19 Aug 2022 12:49:53 +0200 Subject: [PATCH] change(ui): change alert fonts --- .../Dashboard/components/Alerts/AlertListItem.tsx | 14 +++++++------- .../Dashboard/components/Alerts/NewAlert.tsx | 2 +- .../components/DashboardList/DashboardListItem.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx b/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx index 0c87f92a8..521625ef1 100644 --- a/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx +++ b/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx @@ -92,29 +92,29 @@ function AlertListItem(props: Props) { )} -
+
{'When the '} - {alert.detectionMethod} + {alert.detectionMethod} {' of '} - {alert.query.left} + {alert.query.left} {' is '} - + {alert.query.operator} {alert.query.right} {alert.metric.unit} {' over the past '} - {getThreshold(alert.currentPeriod)} + {getThreshold(alert.currentPeriod)} {alert.detectionMethod === 'change' ? ( <> {' compared to the previous '} - {getThreshold(alert.previousPeriod)} + {getThreshold(alert.previousPeriod)} ) : null} {', notify me on '} {getNotifyChannel(alert, webhooks)}.
{alert.description ? ( -
{alert.description}
+
{alert.description}
) : null}
); diff --git a/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx b/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx index 697d6426d..c44d1c31b 100644 --- a/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx +++ b/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx @@ -267,7 +267,7 @@ const NewAlert = (props: IProps) => { -
+
{instance && ( null} webhooks={webhooks} /> )} diff --git a/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx b/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx index 54f359041..0d3b76fd9 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx @@ -41,7 +41,7 @@ function DashboardListItem(props: Props) {
{checkForRecent(dashboard.createdAt, 'LLL dd, yyyy, hh:mm a')}
- {dashboard.description ?
{dashboard.description}
: null} + {dashboard.description ?
{dashboard.description}
: null} ); }