diff --git a/css/general/textColors.css b/css/general/textColors.css index a1814a8dd8af0106a53d849f5aaf95f027191828..b79e14950b09b2ba7c9c767344c7170ce8dbeef7 100644 --- a/css/general/textColors.css +++ b/css/general/textColors.css @@ -155,6 +155,17 @@ color: red } +/* FIXME: not working correctly - displays at top right corner of screen instead of after content in container */ +div > span.warning.notification::after { + font-family: "tme-fa-icons"; + position: absolute; + right: 5px; + top: 0; + content: "\e80c"; + color: red; + font-style: normal; +} + .seagreen, .seagreen a, .trust.prof-trusting, .trust.prof-trusting a { color: seagreen } diff --git a/src/js/main.js b/src/js/main.js index 2ab67e10582b83e03bfa2852b93a1781da55b2c2..0be03bf58585ef2e4b24d28868f4888a7b401d07 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -202,7 +202,7 @@ App.MainView.full = function() { links.push(App.UI.DOM.passageLink("Summary Options", "Summary Options")); - if (V.rulesAssistantMain !== 0) { + if (V.rulesAssistantMain) { const RALink = App.UI.DOM.passageLink("Rules Assistant Options", "Rules Assistant"); RALink.append(' ', App.UI.DOM.makeElement("span", App.UI.Hotkeys.hotkeys("Rules Assistant"), "hotkey")); @@ -233,8 +233,8 @@ App.MainView.full = function() { }, null, '', `This will only check slaves in the Penthouse.`)); if (DefaultRulesError()) { - App.UI.DOM.appendNewElement("span", div, "One or more rules' custom conditions has errors!", - ["note", "warning"]); + App.UI.DOM.appendNewElement("div", div, `One or more rules' custom conditions has errors!`, + ['text-center', 'warning', 'notification']); } }