Directly inserting inline svgs in emails is poorly supported
This commit is contained in:
mgabdev 2020-05-28 20:05:36 -04:00
parent ce69d939b7
commit 150b1ba8a2
2 changed files with 8 additions and 6 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="111px" height="68px" viewBox="0 0 111 68" version="1.1">
<g id="surface1">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,81.960784%,47.058824%);fill-opacity:1;" d="M 26.257812 18.21875 L 36.402344 18.21875 L 36.402344 46.214844 C 36.402344 59.640625 29.113281 66.066406 18.144531 66.066406 C 13.136719 66.066406 8.699219 64.351562 5.972656 61.996094 L 10.03125 54.359375 C 12.375 55.949219 14.59375 56.90625 17.574219 56.90625 C 22.964844 56.90625 26.257812 53.023438 26.257812 47.425781 L 26.257812 45.707031 C 23.976562 48.441406 20.746094 49.78125 17.195312 49.78125 C 8.507812 49.78125 1.917969 42.527344 1.917969 33.492188 C 1.917969 24.457031 8.507812 17.203125 17.195312 17.203125 C 20.746094 17.203125 23.976562 18.539062 26.257812 21.273438 Z M 19.160156 40.617188 C 23.027344 40.617188 26.257812 37.371094 26.257812 33.492188 C 26.257812 29.609375 23.027344 26.363281 19.160156 26.363281 C 15.292969 26.363281 12.058594 29.609375 12.058594 33.492188 C 12.058594 37.371094 15.292969 40.617188 19.160156 40.617188 Z M 69.445312 48.761719 L 59.304688 48.761719 L 59.304688 46.214844 C 57.339844 48.441406 54.613281 49.78125 51.0625 49.78125 C 43.960938 49.78125 40.03125 44.816406 40.03125 39.152344 C 40.03125 30.753906 50.300781 27.636719 59.175781 30.308594 C 58.988281 27.574219 57.273438 25.601562 53.726562 25.601562 C 51.253906 25.601562 48.398438 26.554688 46.625 27.574219 L 43.582031 20.257812 C 45.929688 18.730469 50.238281 17.203125 55.246094 17.203125 C 62.664062 17.203125 69.445312 21.402344 69.445312 32.855469 Z M 59.304688 36.671875 C 54.550781 35.144531 50.175781 35.972656 50.175781 39.34375 C 50.175781 41.316406 51.824219 42.652344 53.789062 42.652344 C 56.132812 42.652344 58.796875 40.746094 59.304688 36.671875 Z M 84.742188 1.933594 L 84.742188 21.273438 C 87.023438 18.539062 90.253906 17.203125 93.804688 17.203125 C 102.492188 17.203125 109.082031 24.457031 109.082031 33.492188 C 109.082031 42.527344 102.492188 49.78125 93.804688 49.78125 C 90.253906 49.78125 87.023438 48.441406 84.742188 45.707031 L 84.742188 48.761719 L 74.597656 48.761719 L 74.597656 1.933594 Z M 91.839844 40.617188 C 95.707031 40.617188 98.941406 37.371094 98.941406 33.492188 C 98.941406 29.609375 95.707031 26.363281 91.839844 26.363281 C 87.972656 26.363281 84.742188 29.609375 84.742188 33.492188 C 84.742188 37.371094 87.972656 40.617188 91.839844 40.617188 Z M 91.839844 40.617188 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -55,9 +55,7 @@
%tr
%td{:align => "center", :style => "padding:40px 0 35px 0"}
%a{:href => "https://gab.com", :style => "color:#3ACD80;text-decoration:none;outline:0;", :target => "_blank"}
%svg{:version => "1.1", :viewbox => "0 0 111 68", :height => "38px", :width => "62px", :xmlns => "http://www.w3.org/2000/svg", "xmlns:xlink" => "http://www.w3.org/1999/xlink", :style => "height:38px;width:62px;"}
%g
%path{:d => "M 26.26 18.22 L 36.4 18.22 L 36.4 46.21 C 36.4 59.64 29.11 66.07 18.14 66.07 C 13.14 66.07 8.7 64.35 5.97 62 L 10.03 54.36 C 12.38 55.95 14.59 56.91 17.57 56.91 C 22.96 56.91 26.26 53.02 26.26 47.43 L 26.26 45.71 C 23.98 48.44 20.75 49.78 17.2 49.78 C 8.51 49.78 1.92 42.53 1.92 33.49 C 1.92 24.46 8.51 17.2 17.2 17.2 C 20.75 17.2 23.98 18.54 26.26 21.27 Z M 19.16 40.62 C 23.03 40.62 26.26 37.37 26.26 33.49 C 26.26 29.61 23.03 26.36 19.16 26.36 C 15.29 26.36 12.06 29.61 12.06 33.49 C 12.06 37.37 15.29 40.62 19.16 40.62 Z M 69.45 48.76 L 59.3 48.76 L 59.3 46.21 C 57.34 48.44 54.61 49.78 51.06 49.78 C 43.96 49.78 40.03 44.82 40.03 39.15 C 40.03 30.75 50.3 27.64 59.18 30.31 C 58.99 27.57 57.27 25.6 53.73 25.6 C 51.25 25.6 48.4 26.55 46.63 27.57 L 43.58 20.26 C 45.93 18.73 50.24 17.2 55.25 17.2 C 62.66 17.2 69.45 21.4 69.45 32.86 Z M 59.3 36.67 C 54.55 35.14 50.18 35.97 50.18 39.34 C 50.18 41.32 51.82 42.65 53.79 42.65 C 56.13 42.65 58.8 40.75 59.3 36.67 Z M 84.74 1.93 L 84.74 21.27 C 87.02 18.54 90.25 17.2 93.8 17.2 C 102.49 17.2 109.08 24.46 109.08 33.49 C 109.08 42.53 102.49 49.78 93.8 49.78 C 90.25 49.78 87.02 48.44 84.74 45.71 L 84.74 48.76 L 74.6 48.76 L 74.6 1.93 Z M 91.84 40.62 C 95.71 40.62 98.94 37.37 98.94 33.49 C 98.94 29.61 95.71 26.36 91.84 26.36 C 87.97 26.36 84.74 29.61 84.74 33.49 C 84.74 37.37 87.97 40.62 91.84 40.62 Z M 91.84 40.62 ", :style => "fill:#30CE7D"}
= image_tag full_pack_url('media/images/mailer/logo_sm_brand.svg'), alt: 'Gab Social', border: "0", height: 38, width: 62, :style => "height:38px;width:62px;"
= yield
@ -95,6 +93,4 @@
%tr
%td{:align => "center", :style => ""}
%a{:href => "https://gab.com", :style => "color:#3ACD80;text-decoration:none;outline:0;", :target => "_blank"}
%svg{:height => "28px", :version => "1.1", :viewbox => "0 0 111 68", :width => "46px", :xmlns => "http://www.w3.org/2000/svg", "xmlns:xlink" => "http://www.w3.org/1999/xlink", :style => "height:28px;width:46px;opacity:0.2;"}
%g
%path{:d => "M 26.26 18.22 L 36.4 18.22 L 36.4 46.21 C 36.4 59.64 29.11 66.07 18.14 66.07 C 13.14 66.07 8.7 64.35 5.97 62 L 10.03 54.36 C 12.38 55.95 14.59 56.91 17.57 56.91 C 22.96 56.91 26.26 53.02 26.26 47.43 L 26.26 45.71 C 23.98 48.44 20.75 49.78 17.2 49.78 C 8.51 49.78 1.92 42.53 1.92 33.49 C 1.92 24.46 8.51 17.2 17.2 17.2 C 20.75 17.2 23.98 18.54 26.26 21.27 Z M 19.16 40.62 C 23.03 40.62 26.26 37.37 26.26 33.49 C 26.26 29.61 23.03 26.36 19.16 26.36 C 15.29 26.36 12.06 29.61 12.06 33.49 C 12.06 37.37 15.29 40.62 19.16 40.62 Z M 69.45 48.76 L 59.3 48.76 L 59.3 46.21 C 57.34 48.44 54.61 49.78 51.06 49.78 C 43.96 49.78 40.03 44.82 40.03 39.15 C 40.03 30.75 50.3 27.64 59.18 30.31 C 58.99 27.57 57.27 25.6 53.73 25.6 C 51.25 25.6 48.4 26.55 46.63 27.57 L 43.58 20.26 C 45.93 18.73 50.24 17.2 55.25 17.2 C 62.66 17.2 69.45 21.4 69.45 32.86 Z M 59.3 36.67 C 54.55 35.14 50.18 35.97 50.18 39.34 C 50.18 41.32 51.82 42.65 53.79 42.65 C 56.13 42.65 58.8 40.75 59.3 36.67 Z M 84.74 1.93 L 84.74 21.27 C 87.02 18.54 90.25 17.2 93.8 17.2 C 102.49 17.2 109.08 24.46 109.08 33.49 C 109.08 42.53 102.49 49.78 93.8 49.78 C 90.25 49.78 87.02 48.44 84.74 45.71 L 84.74 48.76 L 74.6 48.76 L 74.6 1.93 Z M 91.84 40.62 C 95.71 40.62 98.94 37.37 98.94 33.49 C 98.94 29.61 95.71 26.36 91.84 26.36 C 87.97 26.36 84.74 29.61 84.74 33.49 C 84.74 37.37 87.97 40.62 91.84 40.62 Z M 91.84 40.62 ", :style => "fill:#444"}
= image_tag full_pack_url('media/images/mailer/logo_sm_brand.svg'), alt: 'Gab Social', border: "0", height: 28, width: 46, :style => "height:28px;width:46px;opacity:0.2;"