From 5e481c6ea2d49efcd3995f17c2732398028d82c6 Mon Sep 17 00:00:00 2001 From: Jan Sandbrink Date: Wed, 9 Jul 2025 08:38:57 +0200 Subject: [PATCH] Improve readability of webhook responses Previously we hardcoded a light background for the
 element
of webhook responses, which obviously didn't work. Removing that
color alone would have left the 
 sections mostly invisible,
aside from the font change they performed. By adding the op-uc-code-block
class to them, they received an outline and some additional styling
like you would see them in a work package.
---
 frontend/src/global_styles/content/modules/_webhooks.sass   | 1 -
 .../outgoing/deliveries/response_component.html.erb         | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

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 @@
     

Headers

-
<%- response_headers.each do |k, v| -%><%= h k -%>:  <%= h v -%>
<%- end -%>
-
+
<%- response_headers.each do |k, v| -%><%= h k -%>:  <%= h v -%>
<%- end -%>
+

Response body

-
<%= response_body %>
+
<%= response_body %>