From 4fd95bd576876a1c466722935c84a94d9e01f732 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Fri, 27 Oct 2017 14:38:10 +1300 Subject: [PATCH] Fix the expanded data being off by one pixel When there are rows of expanded data, if that row itself has an expansion button, then there would be a 1 pixel difference between it and the parent row spacing. --- resources/day8/re_frame/trace/main.css | 3 +++ resources/day8/re_frame/trace/main.less | 3 +++ 2 files changed, 6 insertions(+) diff --git a/resources/day8/re_frame/trace/main.css b/resources/day8/re_frame/trace/main.css index f439c7e..1571a25 100644 --- a/resources/day8/re_frame/trace/main.css +++ b/resources/day8/re_frame/trace/main.css @@ -452,6 +452,7 @@ #--re-frame-trace-- .re-frame-trace--object .toggle { color: #8f8f8f; cursor: pointer; + line-height: 1; } #--re-frame-trace-- .re-frame-trace--object > span { vertical-align: text-top; @@ -459,4 +460,6 @@ #--re-frame-trace-- .expansion-button { font-family: sans-serif; width: 16px; + padding: 0 2px; + vertical-align: middle; } diff --git a/resources/day8/re_frame/trace/main.less b/resources/day8/re_frame/trace/main.less index d467d04..4fced83 100644 --- a/resources/day8/re_frame/trace/main.less +++ b/resources/day8/re_frame/trace/main.less @@ -546,6 +546,7 @@ .toggle { color: @text-color-muted; cursor: pointer; + line-height: 1; } & > span { vertical-align: text-top; @@ -556,5 +557,7 @@ .expansion-button { font-family: sans-serif; width: 16px; + padding: 0 2px; + vertical-align: middle; } }