From 9f5d5ffe89d0393a503f4468834d34d6642f6657 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 15 Aug 2024 13:59:55 -0700 Subject: [PATCH] feat: Adjust aspect ratio calculation for code-in-json-benchmark.js --- aider/website/_includes/code-in-json-benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/website/_includes/code-in-json-benchmark.js b/aider/website/_includes/code-in-json-benchmark.js index d312950d4..6c01e17af 100644 --- a/aider/website/_includes/code-in-json-benchmark.js +++ b/aider/website/_includes/code-in-json-benchmark.js @@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', function () { function getAspectRatio() { var width = chartContainer.offsetWidth; // Gradually change aspect ratio from 2 (landscape) to 1 (square) - return Math.max(1, Math.min(2, width / 400)); + return Math.max(1, Math.min(2, width / 300)); } var config = {