Skip to content

Commit

Permalink
Merge pull request #16082 from craftcms/bugfix/card-designer-thumbnails
Browse files Browse the repository at this point in the history
Bugfix card designer thumbnails
  • Loading branch information
brandonkelly authored Nov 12, 2024
2 parents 4f8f291 + c36ab4e commit bd1693a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/Cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ public static function cardPreviewHtml(FieldLayout $fieldLayout, array $cardElem
]);

// get thumb placeholder
if ($showThumb) {
if ($showThumb ?? $fieldLayout->getThumbField() !== null) {
$previewThumb = Html::tag('div',
Html::tag('div', Cp::iconSvg('image'), ['class' => 'cp-icon']),
['class' => 'cvd-thumbnail']
Expand Down

0 comments on commit bd1693a

Please sign in to comment.