diff --git a/resources/css/theme-default.style.css b/resources/css/theme-default.style.css
index 93a01c70..82635f4d 100644
--- a/resources/css/theme-default.style.css
+++ b/resources/css/theme-default.style.css
@@ -1085,8 +1085,8 @@ button {
scrollbar-color: #3c4c67 transparent);
}
*::-webkit-scrollbar { /* Background */
- width: 7px;
- height: 7px;
+ width: 10px;
+ height: 10px;
background: transparent;
}
diff --git a/resources/views/components/field-details.blade.php b/resources/views/components/field-details.blade.php
index ae4e85c7..ab31d087 100644
--- a/resources/views/components/field-details.blade.php
+++ b/resources/views/components/field-details.blade.php
@@ -1,7 +1,7 @@
@php
$html ??= []; $class = $html['class'] ?? null;
@endphp
-{{ $name }}
+{{ $name }}
@if($type){{ $type }}@endif
@if($isInput && !$required)optional@endif
@if($isInput && empty($hasChildren))
@@ -57,4 +57,10 @@
@endif
@endif
-{!! Parsedown::instance()->text($description) !!}
+@php
+if($example !== null && $example !== '' && !is_array($example)) {
+ $exampleAsString = $example === false ? "false" : $example;
+ $description .= " Example: `$example`";
+ }
+@endphp
+{!! Parsedown::instance()->text(trim($description)) !!}
diff --git a/resources/views/components/nested-fields.blade.php b/resources/views/components/nested-fields.blade.php
index b8089e99..2cc8ad39 100644
--- a/resources/views/components/nested-fields.blade.php
+++ b/resources/views/components/nested-fields.blade.php
@@ -1,22 +1,23 @@
@php
- $isInput ??= true
+ $isInput ??= true;
+ $level ??= 0;
@endphp
@foreach($fields as $name => $field)
@if($name === '[]')
@php
$description = "The request body is an array ({$field['type']}
`)";
$description .= !empty($field['description']) ? ", representing ".lcfirst($field['description'])."." : '.';
+ if(count($field['__fields'])) $description .= " Each item has the following properties:";
@endphp
-
- {!! Parsedown::instance()->text($description) !!} -
+ {!! Parsedown::instance()->text($description) !!} + @foreach($field['__fields'] as $subfieldName => $subfield) @if(!empty($subfield['__fields']))+
+
+
+
+
+
+