Pad snapshot elements before capture
Assisted-by: Claude Opus 4.6 via Claude Code
diff --git a/lib/ketchup/snapshots.rb b/lib/ketchup/snapshots.rb
index ac9cb87..5e1cbf6 100644
--- a/lib/ketchup/snapshots.rb
+++ b/lib/ketchup/snapshots.rb
@@ -270,7 +270,9 @@ module Ketchup
if area
@browser.screenshot(path: file.to_s, area: area)
elsif selector
+ @browser.execute("document.querySelector(#{selector.to_json}).style.padding = '1.5rem'")
@browser.screenshot(path: file.to_s, selector: selector)
+ @browser.execute("document.querySelector(#{selector.to_json}).style.padding = ''")
else
@browser.screenshot(path: file.to_s)
end