fix: Improve folder icon rendering (#2467)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:12 -07:00
committed by dermotduffy
parent d8ad347dfa
commit 056a038e81
4 changed files with 48 additions and 4 deletions
@@ -177,5 +177,18 @@ describe('ThumbnailFeatureController', () => {
expect(controller.getThumbnail()).toBe('https://card.camera/thumbnail.jpg');
expect(controller.getThumbnailClass()).toBeNull();
});
it('should set placeholder thumbnail for non-brand folder thumbnail', () => {
const controller = new ThumbnailFeatureController();
const folder = new ViewFolder(createFolder(), [], {
title: 'Test Folder',
thumbnail: 'https://card.camera/thumbnail.jpg',
});
controller.calculate(null, folder, false);
expect(controller.getThumbnail()).toBe('https://card.camera/thumbnail.jpg');
expect(controller.getThumbnailClass()).toBe('placeholder');
});
});
});