From 29f29bf720ceb2eab11929cbdc77aa23a327c92d Mon Sep 17 00:00:00 2001 From: Manuk Date: Sat, 7 Nov 2026 21:10:06 +0400 Subject: [PATCH] fix: pad the record column and show the entity icon for a record without an image --- .../views/forms/record-select-input.blade.php | 34 +++++++++++++ .../columns/partials/record-avatar.blade.php | 14 ++++++ .../tables/columns/record-column.blade.php | 50 +++---------------- .../RecordSelectInputComponent.php | 11 ++++ .../Tables/Columns/RecordColumn.php | 1 + .../Components/RecordSelectSearchTest.php | 22 ++++++++ .../Resources/Pages/ListRecordsTest.php | 37 ++++++++++++++ tests/Helpers.php | 4 +- .../migrations/create_posts_table.php | 1 + 9 files changed, 130 insertions(+), 44 deletions(-) create mode 100644 resources/views/tables/columns/partials/record-avatar.blade.php diff --git a/resources/views/forms/record-select-input.blade.php b/resources/views/forms/record-select-input.blade.php index af3b78633..4c308459f 100644 --- a/resources/views/forms/record-select-input.blade.php +++ b/resources/views/forms/record-select-input.blade.php @@ -17,6 +17,7 @@ $selectedIds = is_array($state) ? array_filter($state) : []; $initialRecords = $getRecordsByIds($selectedIds); $initialOptions = $getInitialOptions(); + $fallbackIcon = $getFallbackIcon(); @endphp + @if ($fallbackIcon) + + @endif @@ -532,6 +544,17 @@ class="h-5 w-5 object-cover" alt="" /> + @if ($fallbackIcon) + + @endif