Skip to content

Commit

Permalink
minify test
Browse files Browse the repository at this point in the history
  • Loading branch information
MalifaciousGames committed Oct 30, 2023
1 parent 89294b4 commit c1a2d3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hover-macro/hover-macro.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ const summonTip = (txt, $cont, dir) => {
$cont.append($tip);
$tip.removeClass().wiki(txt);

const {height : h, width : w} = $tip[0].getBoundingClientRect(), mrg = 4, contRect = $cont[0].getBoundingClientRect();

contRect.center = {y :contRect.top+contRect.height/2, x : contRect.left+contRect.width/2};
const {height : h, width : w} = $tip[0].getBoundingClientRect(), mrg = 4, contRect = $cont[0].getBoundingClientRect();
contRect.center = {y :contRect.top+contRect.height/2, x : contRect.left+contRect.width/2};

const positions = {
up : {at : [contRect.center.x, contRect.top], stickout : {main : -(h+mrg), sec : w/2}},
Expand Down

0 comments on commit c1a2d3c

Please sign in to comment.