From 948459f773d46c2d9e91f0cd6cf805724ee44410 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Wed, 13 Apr 2016 16:29:25 +0200 Subject: [PATCH] Use an icon rather than color to draw attention to broken plugin --- client/app/scripts/components/plugins.js | 5 ++--- client/app/styles/main.less | 11 +++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/client/app/scripts/components/plugins.js b/client/app/scripts/components/plugins.js index 5b58324ef..f7b191682 100644 --- a/client/app/scripts/components/plugins.js +++ b/client/app/scripts/components/plugins.js @@ -5,14 +5,13 @@ export default class Plugins extends React.Component { renderPlugin({id, label, description, status}) { const error = status !== 'ok'; const className = classNames({ error }); - const title = error ? - `Status: ${status}. (Plugin description: ${description})` : - description; + const title = `Status: ${status} | Plugin description: ${description}`; // Inner span to hold styling so we don't effect the "before:content" return ( + {error && } {label || id} diff --git a/client/app/styles/main.less b/client/app/styles/main.less index f1b7c753e..163465dc2 100644 --- a/client/app/styles/main.less +++ b/client/app/styles/main.less @@ -1007,9 +1007,16 @@ h2 { content: ', '; } + &-plugin-icon { + top: 1px; + position: relative; + font-size: 120%; + margin-right: 2px; + } + .error { - animation: blinking 2.0s 30 @base-ease; // blink for 1 minute; - color: darkred; + animation: blinking 2.0s 60 @base-ease; // blink for 2 minute; + color: @text-secondary-color; } &-empty {