We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f593371 commit 7a165c1Copy full SHA for 7a165c1
src/components/BST.astro
@@ -7,6 +7,7 @@
7
#tree {
8
display: flex;
9
flex-direction: column;
10
+ align-items: center;
11
gap: 20px;
12
height: 30vh;
13
}
src/typescript/BST.ts
@@ -281,7 +281,7 @@ function updateTraversals(tree: BinaryTree) {
281
282
283
function updateCanvasProperties(ctx: CanvasRenderingContext2D) {
284
- canvas.style.width = '50vw';
+ canvas.style.width = '100%';
285
canvas.style.height = '50vh';
286
canvas.width = canvas.offsetWidth;
287
canvas.height = canvas.offsetHeight;
0 commit comments