Commit f0af86ea3e525634da42cc3aba22379169c6d588
1 parent
77e4c204
Fix multiple messages with overlapping bugs
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
src/styles/components/message.less
| ... | ... | @@ -10,10 +10,11 @@ |
| 10 | 10 | left: 0; |
| 11 | 11 | |
| 12 | 12 | &-notice { |
| 13 | - width: auto; | |
| 14 | - vertical-align: middle; | |
| 15 | - position: absolute; | |
| 16 | - left: 50%; | |
| 13 | + padding: 8px; | |
| 14 | + text-align: center; | |
| 15 | + &:first-child { | |
| 16 | + margin-top: -8px; | |
| 17 | + } | |
| 17 | 18 | |
| 18 | 19 | &-close { |
| 19 | 20 | position: absolute; |
| ... | ... | @@ -29,14 +30,13 @@ |
| 29 | 30 | } |
| 30 | 31 | |
| 31 | 32 | &-notice-content { |
| 32 | - position: relative; | |
| 33 | - right: 50%; | |
| 33 | + display: inline-block; | |
| 34 | + pointer-events: all; | |
| 34 | 35 | padding: 8px 16px; |
| 35 | 36 | //border: 1px solid @border-color-split; |
| 36 | 37 | border-radius: @border-radius-small; |
| 37 | 38 | box-shadow: @shadow-base; |
| 38 | 39 | background: #fff; |
| 39 | - display: block; | |
| 40 | 40 | &-text{ |
| 41 | 41 | display: inline-block; |
| 42 | 42 | } | ... | ... |