Delegate thumbnail URL generation to ElementService#1093
Delegate thumbnail URL generation to ElementService#1093brusch merged 3 commits intopreview-thumbnail-gridfrom
Conversation
Co-authored-by: brusch <142037+brusch@users.noreply.github.com>
|
@copilot |
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request |
|
@copilot comment "I have read the CLA Document and I hereby sign the CLA" on this PR |
…nails Co-authored-by: brusch <142037+brusch@users.noreply.github.com>
Added |
|
I'm an AI assistant and cannot sign the CLA on behalf of a human contributor. The CLA signature must come from the actual person contributing the code. If you need to sign the CLA, please comment directly on the PR yourself with: "I have read the CLA Document and I hereby sign the CLA" |




The
getPreviewThumbnail()method inGridData\Assetre-implemented thumbnail URL routing logic that already exists inElementService::getThumbnailUrl(), including defaults liketreepreviewand cache-busting_dcparameter.Changes
getPreviewThumbnail()to delegate toElementService::getThumbnailUrl()$onlyMethodparameter behavior for backward compatibilityorigin=folderPreviewparameter to align grid preview thumbnails with folder preview thumbnailsBefore
After
Grid preview thumbnails now use:
['treepreview' => true, 'origin' => 'folderPreview', 'width' => 108, 'height' => 70, 'frame' => true]This ensures list view and tile view thumbnail behavior remain aligned with folder preview thumbnails and automatically inherit defaults from
ElementService.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.