From f61a6375357496d828fa9ddf2ef297974216e750 Mon Sep 17 00:00:00 2001 From: Ze Yu Date: Wed, 5 Feb 2020 01:47:47 +0800 Subject: [PATCH] Enhance box component heading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Box headings are anchored to the top right corner of the box. Such a heading style causes the box content to overflow at times. Using the new seamless option with the light option causes unintended output as well. Let’s enhance the box component heading style, using a separate top horizontal section instead, fixing the content overflow. In addition, let’s support markdown parsing for the header, which pairs Nicely with the new support for various icon sizes. Lastly, let’s give the light option priority over the seamless option if both options are mistakenly used. --- src/TipBox.vue | 138 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 96 insertions(+), 42 deletions(-) diff --git a/src/TipBox.vue b/src/TipBox.vue index e64c1917..3021ff91 100644 --- a/src/TipBox.vue +++ b/src/TipBox.vue @@ -1,25 +1,38 @@ + + +