Skip to content

Commit

Permalink
Prevent the icons svg from taking page rea-estate
Browse files Browse the repository at this point in the history
This caused the jump when inserting a tooltip after this inline svg
  • Loading branch information
nb-ohad committed Jun 8, 2017
1 parent a1b3db9 commit 72af55b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ function preload() {
image => loadImage(`${base}/${image}`)
),
loadSvg(`${base}/${iconsSvg}`).then(
svg => document.body.appendChild(svg)
svg => {
svg.style.display = 'none';
document.body.appendChild(svg);
}
)
);

Expand Down

0 comments on commit 72af55b

Please sign in to comment.