From b5c8cbec526bab5b85b39f73d14c07d3d4a1ddcb Mon Sep 17 00:00:00 2001 From: Shawn Date: Sat, 1 Dec 2018 00:59:12 -0600 Subject: [PATCH] Attempt to fix Safari rendering of SVGs --- client/src/components/Memeify/FontFaces/OldBlue.js | 4 ++-- client/src/components/Memeify/FontFaces/VaporWave.js | 2 +- client/src/components/Memeify/RichDraggable/index.js | 2 +- client/src/components/Memeify/index.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/Memeify/FontFaces/OldBlue.js b/client/src/components/Memeify/FontFaces/OldBlue.js index e316c2d9..84f584c2 100644 --- a/client/src/components/Memeify/FontFaces/OldBlue.js +++ b/client/src/components/Memeify/FontFaces/OldBlue.js @@ -25,12 +25,12 @@ module.exports = { - + {text} - + {text} diff --git a/client/src/components/Memeify/FontFaces/VaporWave.js b/client/src/components/Memeify/FontFaces/VaporWave.js index af8b0258..99d462ad 100644 --- a/client/src/components/Memeify/FontFaces/VaporWave.js +++ b/client/src/components/Memeify/FontFaces/VaporWave.js @@ -35,7 +35,7 @@ module.exports = { - + {formattedText} diff --git a/client/src/components/Memeify/RichDraggable/index.js b/client/src/components/Memeify/RichDraggable/index.js index 8c7e8226..114ca50b 100644 --- a/client/src/components/Memeify/RichDraggable/index.js +++ b/client/src/components/Memeify/RichDraggable/index.js @@ -50,7 +50,7 @@ export default class RichDraggable extends Component { return (
-
+
{props.children}
diff --git a/client/src/components/Memeify/index.js b/client/src/components/Memeify/index.js index 73965c66..83bd5f93 100644 --- a/client/src/components/Memeify/index.js +++ b/client/src/components/Memeify/index.js @@ -30,7 +30,7 @@ const getRasterizedCanvas = (contents, width, height) => { // Attempt to match font kerning with the DOM. const kerningAndPadding = ''; - const svgContents = ` + let svgContents = ` ${kerningAndPadding}${contents} `;