Add workflow menu button to thread lists
Bug: twpowertools:74
Change-Id: I703950394d674c2084278bf9e876014d08fa5cfb
diff --git a/src/static/_locales/en/messages.json b/src/static/_locales/en/messages.json
index 99a0132..1c3e75b 100644
--- a/src/static/_locales/en/messages.json
+++ b/src/static/_locales/en/messages.json
@@ -275,6 +275,10 @@
"message": "Due to technical reasons, we can't load the avatars of threads published in private forums.",
"description": "Helper text which appears when hovering an icon next to a thread, to explain its meaning."
},
+ "inject_workflows_menubtn": {
+ "message": "Run a workflow...",
+ "description": "Tooltip of the icon shown above a thread or in thread lists when selecting multiple threads in the Community Console which lets the user show a menu with the worklofws they can run."
+ },
"actionbadge_permissions_requested": {
"message": "Some features need additional permissions to work. Click to fix it.",
"description": "Tooltip for the extension icon when a feature is enabled but it needs several permissions to be granted."
diff --git a/src/static/css/ccdarktheme.css b/src/static/css/ccdarktheme.css
index 8a6b6ad..aa49585 100644
--- a/src/static/css/ccdarktheme.css
+++ b/src/static/css/ccdarktheme.css
@@ -31,7 +31,7 @@
color: var(--TWPT-primary-text);
}
-body.ec a {
+body.ec a:not(.mdc-list-item) {
color: var(--TWPT-link);
}
diff --git a/src/static/css/common/console.css b/src/static/css/common/console.css
index 96cb5b9..04c9648 100644
--- a/src/static/css/common/console.css
+++ b/src/static/css/common/console.css
@@ -23,7 +23,7 @@
.TWPT-btn--with-badge {
position: relative;
- padding: 4px;
+ padding: 0 4px 4px 0;
cursor: pointer;
}