|
@@ -14,7 +14,7 @@ class CommonHelper
|
|
|
{
|
|
|
$html = '<div style="display: flex; flex-wrap: wrap; gap: 5px;">';
|
|
|
foreach ($images as $image) {
|
|
|
- $html .= "<div style='flex: 1 0 150px; max-width: {$size}px; max-height: {$size}px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center;'>
|
|
|
+ $html .= "<div style='flex: 1 0 {$size}px; max-width: {$size}px; max-height: {$size}px; padding: 5px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center;'>
|
|
|
<img data-action='preview-img' src='" . asset('storage/' . $image) . "' style='max-width: 100%; max-height: 100%; object-fit: contain;'>
|
|
|
</div>";
|
|
|
}
|