FIX: CSS tweak and production position fix for miniprofiler (#17493)

* DEV: Format miniprofiler html
* FIX: Move miniprofiler to the right in production
* UX: Fix and merge miniprofiler css
This commit is contained in:
Jarek Radosz
2022-07-14 13:03:43 +02:00
committed by GitHub
parent 737c0a7b9f
commit 4b935b61eb
4 changed files with 34 additions and 10 deletions

View File

@@ -72,6 +72,8 @@ if defined?(Rack::MiniProfiler) && defined?(Rack::MiniProfiler::Config)
# does not get clobbered.
Rack::MiniProfiler.config.cookie_path = Discourse.base_path.presence || "/"
Rack::MiniProfiler.config.position = "right"
Rack::MiniProfiler.config.backtrace_ignores ||= []
Rack::MiniProfiler.config.backtrace_ignores << /lib\/rack\/message_bus.rb/
Rack::MiniProfiler.config.backtrace_ignores << /config\/initializers\/silence_logger/