diff --git a/src/General/css/report.css b/src/General/css/report.css new file mode 100644 index 000000000..7dbe0134f --- /dev/null +++ b/src/General/css/report.css @@ -0,0 +1,3 @@ +:root:not(.js-enabled) #g-recaptcha { + height: auto; +} diff --git a/src/Miscellaneous/Report.coffee b/src/Miscellaneous/Report.coffee index 2ebd665d1..999c892eb 100755 --- a/src/Miscellaneous/Report.coffee +++ b/src/Miscellaneous/Report.coffee @@ -1,9 +1,5 @@ Report = - css: ''' - :root:not(.js-enabled) #g-recaptcha { - height: auto; - } - ''' + css: `<%= importCSS('report') %>` init: -> return unless /\bmode=report\b/.test(location.search) and match = location.search.match /\bno=(\d+)/