From f0af86ea3e525634da42cc3aba22379169c6d588 Mon Sep 17 00:00:00 2001 From: lan Date: Mon, 4 Sep 2017 19:50:18 +0800 Subject: [PATCH] Fix multiple messages with overlapping bugs --- src/styles/components/message.less | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/styles/components/message.less b/src/styles/components/message.less index 6e706f1..c16230a 100644 --- a/src/styles/components/message.less +++ b/src/styles/components/message.less @@ -10,10 +10,11 @@ left: 0; &-notice { - width: auto; - vertical-align: middle; - position: absolute; - left: 50%; + padding: 8px; + text-align: center; + &:first-child { + margin-top: -8px; + } &-close { position: absolute; @@ -29,14 +30,13 @@ } &-notice-content { - position: relative; - right: 50%; + display: inline-block; + pointer-events: all; padding: 8px 16px; //border: 1px solid @border-color-split; border-radius: @border-radius-small; box-shadow: @shadow-base; background: #fff; - display: block; &-text{ display: inline-block; } -- libgit2 0.21.4