From 085496d74602fb7a8e35d11e11f6f83abccf9382 Mon Sep 17 00:00:00 2001
From: Howon Lee <hlee.howon@gmail.com>
Date: Mon, 10 Jan 2022 23:14:53 -0800
Subject: [PATCH] Sparkline nits in static viz email (#19550)

Pursuant to the nits from #18678 and #18676
---
 src/metabase/pulse/render.clj      |  2 +-
 src/metabase/pulse/render/body.clj | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/metabase/pulse/render.clj b/src/metabase/pulse/render.clj
index 0182fc8425f..9af34674c1b 100644
--- a/src/metabase/pulse/render.clj
+++ b/src/metabase/pulse/render.clj
@@ -32,7 +32,7 @@
                          (image-bundle/external-link-image-bundle render-type))]
       {:attachments (when image-bundle
                       (image-bundle/image-bundle->attachment image-bundle))
-       :content     [:table {:style (style/style {:margin-bottom   :8px
+       :content     [:table {:style (style/style {:margin-bottom   :2px
                                                   :border-collapse :collapse
                                                   :width           :100%})}
                      [:tbody
diff --git a/src/metabase/pulse/render/body.clj b/src/metabase/pulse/render/body.clj
index 4a8eff78905..bd6163f1fcf 100644
--- a/src/metabase/pulse/render/body.clj
+++ b/src/metabase/pulse/render/body.clj
@@ -424,7 +424,7 @@
             (for [label (map first rows)]
               [:div {:style (style/style {:float       :left :margin-right "12px"
                                           :font-family "Lato, sans-serif"
-                                          :font-size   "24px"})}
+                                          :font-size   "16px"})}
                [:span {:style (style/style {:color (legend-colors label)})}
                 "•"]
                [:span {:style (style/style {:margin-left "6px"})}
@@ -715,25 +715,25 @@
       [:img {:style (style/style {:display :block
                                   :width   :100%})
              :src   (:image-src image-bundle)}]
-      [:table
+      [:table {:style (style/style {:border-spacing :0px})}
        [:tr
         [:td {:style (style/style {:color         style/color-text-dark
-                                   :font-size     :24px
+                                   :font-size     :16px
                                    :font-weight   700
                                    :padding-right :16px})}
          (first values)]
         [:td {:style (style/style {:color       style/color-gray-3
-                                   :font-size   :24px
+                                   :font-size   :16px
                                    :font-weight 700})}
          (second values)]]
        [:tr
         [:td {:style (style/style {:color         style/color-text-dark
-                                   :font-size     :16px
+                                   :font-size     :12px
                                    :font-weight   700
                                    :padding-right :16px})}
          (first labels)]
         [:td {:style (style/style {:color     style/color-gray-3
-                                   :font-size :16px})}
+                                   :font-size :12px})}
          (second labels)]]]]}))
 
 (s/defmethod render :waterfall :- common/RenderedPulseCard
-- 
GitLab