Capture snapshots at 2x for Retina clarity
Assisted-by: Claude Opus 4.6 via pi
change runpzyxrxkqnmzpvqwypxmsoqpztmoom
commit 1ca1f6cddb7337dd18570d5db6467cf2cf9be162
author Alpha Chen <alpha@kejadlen.dev>
date
parent ulnrvyku
diff --git a/lib/ketchup/snapshots.rb b/lib/ketchup/snapshots.rb
index 0dded06..ecfa0d2 100644
--- a/lib/ketchup/snapshots.rb
+++ b/lib/ketchup/snapshots.rb
@@ -98,7 +98,8 @@ module Ketchup
 
         @browser = Ferrum::Browser.new(
           headless: true,
-          window_size: VIEWPORTS.fetch("desktop")
+          window_size: VIEWPORTS.fetch("desktop"),
+          browser_options: { "force-device-scale-factor" => 2 }
         )
 
         @server.call(@browser) do |url|