Files
docker_dev/crater/resources/views/vendor/media-library/responsiveImageWithPlaceholder.blade.php
2025-09-20 16:11:47 +02:00

1 line
323 B
PHP

<img{!! $attributeString !!} loading="{{ $loadingAttributeValue }}" srcset="{{ $media->getSrcset($conversion) }}" onload="if(!(width=this.getBoundingClientRect().width))return;this.onload=null;this.sizes=Math.ceil(width/window.innerWidth*100)+'vw';" sizes="1px" src="{{ $media->getUrl($conversion) }}" width="{{ $width }}">