mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: Notification RTL should have corrent margin (#45386)
This commit is contained in:
parent
fc5abff7d3
commit
7ceb1fb31c
@ -181,7 +181,10 @@ const genNotificationStyle: GenerateStyle<NotificationToken> = (token) => {
|
||||
|
||||
position: 'fixed',
|
||||
zIndex: token.zIndexPopup,
|
||||
marginInlineEnd: notificationMarginEdge,
|
||||
marginRight: {
|
||||
value: notificationMarginEdge,
|
||||
_skip_check_: true,
|
||||
},
|
||||
|
||||
[`${componentCls}-hook-holder`]: {
|
||||
position: 'relative',
|
||||
|
@ -87,8 +87,14 @@ const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject>
|
||||
},
|
||||
|
||||
[`&${componentCls}-topLeft, &${componentCls}-bottomLeft`]: {
|
||||
marginInlineEnd: 0,
|
||||
marginInlineStart: notificationMarginEdge,
|
||||
marginRight: {
|
||||
value: 0,
|
||||
_skip_check_: true,
|
||||
},
|
||||
marginLeft: {
|
||||
value: notificationMarginEdge,
|
||||
_skip_check_: true,
|
||||
},
|
||||
|
||||
[noticeCls]: {
|
||||
marginInlineEnd: 'auto',
|
||||
@ -103,4 +109,5 @@ const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject>
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default genNotificationPlacementStyle;
|
||||
|
Loading…
Reference in New Issue
Block a user