From ad94455f02a7aebf1144ebba1fe40f9b1c809235 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Fri, 16 Apr 2021 02:05:41 +0800 Subject: [PATCH] fix(webui): fix missing margin of p, fix #228 --- packages/plugin-webui/client/components/card.vue | 6 ------ packages/plugin-webui/client/views/layout/index.vue | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/plugin-webui/client/components/card.vue b/packages/plugin-webui/client/components/card.vue index d399041ff1..a684b19579 100644 --- a/packages/plugin-webui/client/components/card.vue +++ b/packages/plugin-webui/client/components/card.vue @@ -46,12 +46,6 @@ $paddingY: 1.5rem; .k-card-body { padding: $paddingX $paddingY; - > :first-child { - margin-top: 0; - } - > :last-child { - margin-bottom: 0; - } } &.frameless .k-card-body { diff --git a/packages/plugin-webui/client/views/layout/index.vue b/packages/plugin-webui/client/views/layout/index.vue index 8f9f32f276..dacd8c40ff 100644 --- a/packages/plugin-webui/client/views/layout/index.vue +++ b/packages/plugin-webui/client/views/layout/index.vue @@ -107,7 +107,7 @@ main.frameless { .echarts { max-width: 100%; - margin: 0 auto -3rem; + margin: 0 auto; } @media (min-width: 1400px) { @@ -119,7 +119,7 @@ main.frameless { width: 600px; height: 400px; max-width: 100%; - margin: 0 auto -3rem; + margin: 0 auto; } }