From 2ccf29a0a954d58a883ccafceef33ef8b15cd556 Mon Sep 17 00:00:00 2001 From: Maximilian Pierzyna Date: Tue, 26 May 2026 13:54:13 +0200 Subject: [PATCH] Add max-width to pdoc img to avoid overflow of images included in Markdown files --- pdoc/templates/content.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdoc/templates/content.css b/pdoc/templates/content.css index b52df537..f453bd3f 100644 --- a/pdoc/templates/content.css +++ b/pdoc/templates/content.css @@ -468,3 +468,8 @@ This makes sure that the pdoc styling doesn't leak to the rest of the page when padding: 6px 13px; border: 1px solid var(--accent2); } + +.pdoc img { + height: auto; + max-width: 100%; +}