From 2af8d8eacd661e0601b2d6f4dbc1766bf75e702a Mon Sep 17 00:00:00 2001 From: shalvah Date: Tue, 6 Jul 2021 11:45:32 +0100 Subject: [PATCH] Improve spacing in UI --- resources/css/theme-default.style.css | 2 +- .../views/themes/default/endpoint.blade.php | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/resources/css/theme-default.style.css b/resources/css/theme-default.style.css index 5e21dd0f..75970f11 100644 --- a/resources/css/theme-default.style.css +++ b/resources/css/theme-default.style.css @@ -858,7 +858,7 @@ html { .content pre { background-color: #292929; color: #fff; - padding: 2em 28px; + padding: 1.5em 28px; margin: 0; width: 50%; float: right; diff --git a/resources/views/themes/default/endpoint.blade.php b/resources/views/themes/default/endpoint.blade.php index e08b4000..7b413dc2 100644 --- a/resources/views/themes/default/endpoint.blade.php +++ b/resources/views/themes/default/endpoint.blade.php @@ -32,24 +32,20 @@ Show headers -
-            @foreach($response->headers as $header => $value)
+            
@foreach($response->headers as $header => $value)
 {{ $header }}: {{ is_array($value) ? implode('; ', $value) : $value }}
-@endforeach 
-            
+@endforeach
@endif
-                
 @if(is_string($response->content) && Str::startsWith($response->content, "<>"))
-[Binary data] - {{ htmlentities(str_replace("<>", "", $response->content)) }}
+[Binary data] - {{ htmlentities(str_replace("<>", "", $response->content)) }}
 @elseif($response->status == 204)
-[Empty response]
+[Empty response]
 @else
 @php($parsed = json_decode($response->content))
 {{-- If response is a JSON string, prettify it. Otherwise, just print it --}}
-{!! htmlentities($parsed != null ? json_encode($parsed, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) : $response->content) !!}
-@endif 
-        
+{!! htmlentities($parsed != null ? json_encode($parsed, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) : $response->content) !!} +@endif @endforeach @endif