Branch: refs/heads/screenshot-framing Home: https://github.com/xwiki/xwiki-dev-llm Commit: 79d93f793524887ac27a5e7bf6e8046e3fcc7dd3 https://github.com/xwiki/xwiki-dev-llm/commit/79d93f793524887ac27a5e7bf6e804... Author: Vincent Massol <[email protected]> Date: 2026-08-14 (Fri, 14 Aug 2026) Changed paths: M xwiki/skills/xwiki-doc-writing/tools/docshot.sh Log Message: ----------- [Misc] Centre a documentation screenshot's red box on the element it marks * skills/xwiki-doc-writing/tools/docshot.sh: the box geometry was written for `content-box`, but Bootstrap applies `border-box` to every element in XWiki, so the declared width was the outer width and every box came out half a border off-centre: measured on a live page, a 4px gap on the left and top and the border painted 2px *over* the content on the right and bottom, which sliced the text it was meant to mark. `boxSizing` is now set rather than assumed and the width derives from the gap, giving an equal margin on all four sides. * The margin is `GAP` (default 6) and can be overridden per shot, because a target whose own box already carries the clearance needs none: a row of a densely stacked list is a line box whose leading holds the glyphs well inside it, and its neighbours touch it exactly, so adding to it puts the border through the rows above and below. `GAP=0` there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-dev-llm/settings/notifications