mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: update chart settings based on screen width
This commit is contained in:
parent
d9e5d66957
commit
f0c55a949c
1 changed files with 2 additions and 2 deletions
|
@ -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 getChartSettings() {
|
||||
if (window.innerWidth < 600) {
|
||||
return { aspectRatio: 1.5, baseFontSize: 8 };
|
||||
return { aspectRatio: 1, baseFontSize: 8 };
|
||||
} else {
|
||||
return { aspectRatio: 2, baseFontSize: 12 };
|
||||
return { aspectRatio: 1.5, baseFontSize: 12 };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue