Repository navigation
fix: pad the record column and show the entity icon for a record without an image - #292
Merged
Merged
Conversation
This was referenced Nov 7, 2026
fix(panel): board scrollbar, sidebar width and collapse, record field cells
relaticle/relaticle#1124
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A record-type field now lines up with every other column in a table, and a linked record with no image shows its entity's icon instead of a bare name. Before, the record column's value sat 4px left of the cell edge with no padding. A company without a logo, or a person without a photo, showed only an underlined name, in the table and in the record picker.
What changed
resources/views/tables/columns/record-column.blade.php: the wrapper getsfi-ta-text, the class that gives a Filament cell its padding. Commitfc47c40(2026-02-15) added it to the email, link and phone columns and missed this one.RecordColumn::formatRecord()adds aniconkey. It holds the entity icon when the entity has an avatar configuration and this record's image is blank.tables/columns/partials/record-avatar.blade.php. It draws the image, or else a 20px tile with a 12px entity icon in the avatar's shape.RecordSelectInputComponent::getFallbackIcon()returns the entity icon when the entity has an avatar configuration.forms/record-select-input.blade.phpdraws the same tile in its three avatar spots: the selected value, the pills, and the options.Why this way
The icon shows only for entities that configure an avatar attribute, meaning entities that can have an image at all. An entity with no avatar configuration (notes, tasks) keeps its rows as they were, with no icon nobody asked for. The tile's classes match the gray tile used elsewhere for a missing image, so a missing logo and a real one sit at the same size and alignment.
Behavior to know about
EntityConfigurationData::getIcon(), which falls back to the resource's navigation icon.Tests
tests/Feature/Integration/Resources/Pages/ListRecordsTest.php, "Record column avatars": a linked record with an image renders the image once, one without renders one icon tile, and an entity with no avatar configuration renders no tile.tests/Feature/Filament/Components/RecordSelectSearchTest.php: the picker offers the icon tile with an avatar configuration and none without.cover_url, andregisterLookupEntity()intests/Helpers.phptakes an optional avatar attribute and icon.Checked
Not checked
The full suite runs in CI on this PR.