From 6230060d6a3e34e4fe0a35558d52bf0097e7d120 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 26 Sep 2024 19:02:46 -0700 Subject: [PATCH] feat: Adjust chart settings for different screen sizes --- aider/website/_posts/2024-09-26-architect.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aider/website/_posts/2024-09-26-architect.md b/aider/website/_posts/2024-09-26-architect.md index 25cb8d7e4..b91436df7 100644 --- a/aider/website/_posts/2024-09-26-architect.md +++ b/aider/website/_posts/2024-09-26-architect.md @@ -57,9 +57,11 @@ top coding models, as compared to their previous "solo" scores (striped bars). // Function to determine aspect ratio and base font size based on screen width function getChartSettings() { if (window.innerWidth < 600) { - return { aspectRatio: 1.2, baseFontSize: 8 }; // Slightly taller for small screens + return { aspectRatio: 1, baseFontSize: 8 }; // Slightly taller for small screens + } else if (window.innerWidth < 800) { + return { aspectRatio: 1.2, baseFontSize: 10 }; // Slightly taller for small screens } else { - return { aspectRatio: 1.7, baseFontSize: 12 }; // Slightly taller for larger screens + return { aspectRatio: 1.4, baseFontSize: 12 }; // Slightly taller for larger screens } } @@ -168,7 +170,7 @@ top coding models, as compared to their previous "solo" scores (striped bars). position: 'start', xAdjust: 10, font: { - size: baseFontSize + size: baseFontSize-4 } } }