File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const RX_NUMBER = /^[0-9]*\.?[0-9]+$/
1717
1818const FONT_SIZE_SCALE = 0.4
1919const BADGE_FONT_SIZE_SCALE = FONT_SIZE_SCALE * 0.7
20- export const GROUP_MARGIN_SCALE = FONT_SIZE_SCALE * 0.375
2120
2221const DEFAULT_SIZES = {
2322 sm : '1.5em' ,
@@ -193,9 +192,11 @@ export const BAvatar = /*#__PURE__*/ Vue.extend({
193192 return fontSize ? { fontSize } : { }
194193 } ,
195194 marginStyle ( ) {
196- let value = this . computedSize
197- value = value ? `calc(${ value } * -${ GROUP_MARGIN_SCALE } )` : null
198- return value && this . bvAvatarGroup ? { marginLeft : value , marginRight : value } : { }
195+ const avatarGroup = this . bvAvatarGroup
196+ const overlapScale = avatarGroup ? avatarGroup . overlapScale : 0
197+ const size = this . computedSize
198+ const value = size && overlapScale ? `calc(${ size } * -${ overlapScale } )` : null
199+ return value ? { marginLeft : value , marginRight : value } : { }
199200 } ,
200201 badgeStyle ( ) {
201202 const { computedSize : size , badgeTop, badgeLeft, badgeOffset } = this
You can’t perform that action at this time.
0 commit comments