diff --git a/resources/css/checkout.css b/resources/css/checkout.css index 51a4648..5c3b3de 100644 --- a/resources/css/checkout.css +++ b/resources/css/checkout.css @@ -223,13 +223,13 @@ a.bbk-cart-item-title:hover { text-decoration: underline; } font-size: 0.8125rem; } +.bbk-line-field span, .bbk-line-field dt { color: var(--bbk-color-muted); } .bbk-line-field dd { - margin: 0; - white-space: pre-line; + margin: 3px 0 0 0; overflow-wrap: anywhere; } diff --git a/resources/views/checkout/partials/line-custom-fields.blade.php b/resources/views/checkout/partials/line-custom-fields.blade.php index 9c25af1..6f559df 100644 --- a/resources/views/checkout/partials/line-custom-fields.blade.php +++ b/resources/views/checkout/partials/line-custom-fields.blade.php @@ -19,9 +19,9 @@
@foreach ($fields as $field)
-
{{ $field['label'] }}
-
- @if ($field['type'] === 'file') + @if ($field['type'] === 'file') +
{{ $field['label'] }}:
+
@php $file = \Modules\Core\File\Models\File::find($field['file_id'] ?? null); @endphp @@ -39,11 +39,12 @@ @endif {{ $file->original_name }} + @endif - @else - {{ $field['value'] }} - @endif -
+ + @else + {{ $field['label'] }}: {{ $field['value'] }} + @endif
@endforeach