fix(anchor): Agregar width 100% a .roi-anchor-content

El ins.adsbygoogle tenia width 0 porque el contenedor padre
no tenia ancho definido. Esto causaba el error
"No slot size for availableWidth=0" de AdSense.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-28 21:53:28 -06:00
parent 46ad8340c3
commit 956819cf14

View File

@@ -644,6 +644,14 @@ final class AdsensePlacementRenderer
$cssRules[] = $this->cssGenerator->generate('.roi-anchor-controls-right', ['right' => '8px']);
$cssRules[] = $this->cssGenerator->generate('.roi-anchor-controls-center', ['left' => '50%', 'transform' => 'translateX(-50%)']);
// CRITICAL: El contenedor del anuncio DEBE tener width 100% para que AdSense pueda calcular el tamaño
$cssRules[] = $this->cssGenerator->generate('.roi-anchor-content', [
'width' => '100%',
'display' => 'flex',
'align-items' => 'center',
'justify-content' => 'center',
]);
// Buttons
$cssRules[] = $this->cssGenerator->generate('.roi-anchor-btn', [
'width' => '28px',