Skip to content

Commit ffb734f

Browse files
committed
update tags
1 parent c455a50 commit ffb734f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

frontend/overlay/components/TagDrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function TagDrop() {
3636
<canvas
3737
ref={tagRef}
3838
style={{
39-
height: 568,
39+
height: 720,
4040
left: 0,
4141
position: 'absolute',
4242
top: 0,

frontend/overlay/hooks/useTag.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function createTag(url: string) {
2323

2424
setTimeout(() => {
2525
World.remove(engine.world, tag);
26-
}, 30000);
26+
}, 15000);
2727

2828
World.add(engine.world, [tag]);
2929
}
@@ -47,7 +47,6 @@ export function useTag() {
4747
}
4848

4949
const render = Render.create({
50-
element: document.createElement('div'),
5150
canvas,
5251
engine: engine,
5352
options: {
@@ -65,7 +64,7 @@ export function useTag() {
6564
strokeStyle: 'transparent'
6665
}
6766
};
68-
const ground = Bodies.rectangle(width / 2, height, width + 20, 4, boundaries);
67+
const ground = Bodies.rectangle(width / 2 - 180, height, width + 20, 4, boundaries);
6968
const leftWall = Bodies.rectangle(0, height / 2, 4, height + 60, boundaries);
7069
const rightWall = Bodies.rectangle(width, height / 2, 4, height + 60, boundaries);
7170

0 commit comments

Comments
 (0)