fix: update chart settings based on screen width

This commit is contained in:
Paul Gauthier 2024-09-26 18:58:01 -07:00 committed by Paul Gauthier (aider)
parent d9e5d66957
commit f0c55a949c

View file

@ -57,9 +57,9 @@ 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 to determine aspect ratio and base font size based on screen width
function getChartSettings() { function getChartSettings() {
if (window.innerWidth < 600) { if (window.innerWidth < 600) {
return { aspectRatio: 1.5, baseFontSize: 8 }; return { aspectRatio: 1, baseFontSize: 8 };
} else { } else {
return { aspectRatio: 2, baseFontSize: 12 }; return { aspectRatio: 1.5, baseFontSize: 12 };
} }
} }