feat(admin): use filename as title in Media list to show built-in thumbnail
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

This commit is contained in:
Vadym Samoilenko 2026-06-05 12:06:53 +01:00
parent 8e2b79f01f
commit 7080b9ba2d

View file

@ -34,8 +34,9 @@ export const Media: CollectionConfig = {
resizeOptions: { width: 1920, withoutEnlargement: true },
},
admin: {
useAsTitle: 'alt',
useAsTitle: 'filename',
group: 'Медіа',
defaultColumns: ['filename', 'alt', 'updatedAt'],
},
access: {
read: () => true,