feat: use new variant type

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-08-29 19:12:28 -04:00
parent 6af5704e5e
commit 874668e67f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -986,7 +986,7 @@ class DefaultController extends ControllerAbstract {
$userId, $userId,
$target, $target,
$data['part'], $data['part'],
isset($data['variant']) && is_string($data['variant']) ? $data['variant'] : 'popover', isset($data['variant']) && is_string($data['variant']) ? $data['variant'] : 'inline',
); );
if ($preview === null) { if ($preview === null) {
return new JsonResponse([ return new JsonResponse([
+1 -1
View File
@@ -1359,7 +1359,7 @@ class Manager {
/** /**
* Resolve an authorized attachment and lazily generate or retrieve its preview. * Resolve an authorized attachment and lazily generate or retrieve its preview.
*/ */
public function entityPreview(string $tenantId, string $userId, EntityIdentifier $targetEntity, array $part, string $variant = 'popover'): ?Preview { public function entityPreview(string $tenantId, string $userId, EntityIdentifier $targetEntity, array $part, string $variant = 'inline'): ?Preview {
$mimeType = $part['type'] ?? null; $mimeType = $part['type'] ?? null;
$size = $part['size'] ?? null; $size = $part['size'] ?? null;
if (!is_string($mimeType) || ($size !== null && !is_int($size))) { if (!is_string($mimeType) || ($size !== null && !is_int($size))) {