Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Improve readability of webhook responses

Jan Sandbrink5e481c6ea2d4
diff --git a/frontend/src/global_styles/content/modules/_webhooks.sass b/frontend/src/global_styles/content/modules/_webhooks.sass
index 7c189ffe121..a01f13551a9 100644
--- a/frontend/src/global_styles/content/modules/_webhooks.sass
+++ b/frontend/src/global_styles/content/modules/_webhooks.sass
@@ -27,7 +27,6 @@
min-width: 25vw
pre
- background: #f1f1f1
padding: 5px
diff --git a/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb b/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb
index d638d0ded74..8309ad876a0 100644
--- a/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb
+++ b/modules/webhooks/app/components/webhooks/outgoing/deliveries/response_component.html.erb
@@ -13,10 +13,10 @@
<div class="spot-divider"></div>
<div class="spot-modal--body spot-container">
<h2 class="spot-subheader-extra-small">Headers</h2>
- <pre class="webhooks--response-headers"><%- response_headers.each do |k, v| -%><strong><%= h k -%></strong>: <span><%= h v -%></span><br><%- end -%></pre>
- <div class="spot-divider"></div>
+ <pre class="op-uc-code-block webhooks--response-headers"><%- response_headers.each do |k, v| -%><strong><%= h k -%></strong>: <span><%= h v -%></span><br><%- end -%></pre>
+ <div class="spot-divider"></div>
<h2 class="spot-subheader-extra-small">Response body</h2>
- <pre class="webhooks--response-body"><%= response_body %></pre>
+ <pre class="op-uc-code-block webhooks--response-body"><%= response_body %></pre>
</div>
<div class="spot-action-bar hidden-for-mobile">
<div class="spot-action-bar--right">