From 3d012cf65fba8aae153e110f856062f2b9746126 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 3 Jun 2026 11:27:47 -0700 Subject: [PATCH] Improve handling of oversized ad content --- styles/all/theme/phpbbads.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/styles/all/theme/phpbbads.css b/styles/all/theme/phpbbads.css index b135e37..7864f6c 100644 --- a/styles/all/theme/phpbbads.css +++ b/styles/all/theme/phpbbads.css @@ -1,7 +1,18 @@ .phpbb-ads { + overflow: hidden; margin: 10px 0; } +.phpbb-ads img { + max-width: 100%; + height: auto; +} + +.phpbb-ads iframe, +.phpbb-ads video { + max-width: 100%; +} + .phpbb-ads-center { text-align: center; }