mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: Adjust aspect ratio calculation for code-in-json-benchmark.js
This commit is contained in:
parent
cc0960620c
commit
9f5d5ffe89
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
function getAspectRatio() {
|
function getAspectRatio() {
|
||||||
var width = chartContainer.offsetWidth;
|
var width = chartContainer.offsetWidth;
|
||||||
// Gradually change aspect ratio from 2 (landscape) to 1 (square)
|
// 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 = {
|
var config = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue