mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +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() {
|
||||
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue