Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Jun 19, 2024
1 parent 4dadb0a commit 93de8a6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Filament/Blocks/ImageSpatie.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,26 @@ function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, Temporary
->label('didascalia'),
])
->columns($context === 'form' ? 2 : 1);
<<<<<<< HEAD
=======
}

public static function getRatios(): array
{
return [
'4-3' => '4/3',
'3-4' => '3/4',
'free' => 'free',
];
}

public static function getRatioClass(string $ratio): string
{
return match ($ratio) {
'4-3' => 'aspect-[4/3]',
'3-4' => 'aspect-[3/4]',
default => '',
};
>>>>>>> Dusting
}
}

0 comments on commit 93de8a6

Please sign in to comment.