From 2f731d42f31befe04eae3b45dfb88299593ec592 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 6 Oct 2021 11:14:37 +0100 Subject: [PATCH] NewsPanel: Prevent Date and title collapsing to single row (#40016) --- public/app/plugins/panel/news/NewsPanel.tsx | 5 ++++- scripts/ci-check-strict.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/panel/news/NewsPanel.tsx b/public/app/plugins/panel/news/NewsPanel.tsx index 54c59ff8bb5..6903840fc0e 100755 --- a/public/app/plugins/panel/news/NewsPanel.tsx +++ b/public/app/plugins/panel/news/NewsPanel.tsx @@ -133,7 +133,10 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => ({ itemWide: css` flex-direction: row; `, - body: css``, + body: css` + display: flex; + flex-direction: column; + `, socialImage: css` display: flex; align-items: center; diff --git a/scripts/ci-check-strict.sh b/scripts/ci-check-strict.sh index 84695c81e07..80247b4815e 100755 --- a/scripts/ci-check-strict.sh +++ b/scripts/ci-check-strict.sh @@ -3,7 +3,7 @@ set -e echo -e "Collecting code stats (typescript errors & more)" -ERROR_COUNT_LIMIT=41 +ERROR_COUNT_LIMIT=40 ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')" if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then