Skip to content

Commit

Permalink
fix: useNotification className should work
Browse files Browse the repository at this point in the history
close #30576
  • Loading branch information
afc163 committed May 19, 2021
1 parent 7e5a505 commit 2303a06
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions components/notification/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,19 @@
cursor: pointer;
}

&-hook-holder,
&-hook-holder {
position: relative;
}

&-notice {
position: relative;
width: @notification-width;
max-width: ~'calc(100vw - @{notification-margin-edge} * 2)';
margin-bottom: @notification-margin-bottom;
margin-left: auto;
padding: @notification-padding;
overflow: hidden;
line-height: @line-height-base;
word-wrap: break-word;
background: @notification-bg;
border-radius: @border-radius-base;
Expand All @@ -49,16 +54,6 @@
margin-right: auto;
margin-left: 0;
}
}

&-hook-holder > &-notice {
margin-bottom: 0;
box-shadow: none;
}

&-notice {
padding: @notification-padding;
line-height: @line-height-base;

&-message {
margin-bottom: 8px;
Expand Down

0 comments on commit 2303a06

Please sign in to comment.