From 05103db9ca5471c5a93d5078685f2b650dde17b6 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 14 Apr 2021 16:44:59 +0200 Subject: [PATCH] Update FriendNotifications.plugin.js --- Plugins/FriendNotifications/FriendNotifications.plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index a914ce58ef..a80c97a865 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -179,7 +179,7 @@ module.exports = (_ => { src: log.avatar, size: BDFDB.LibraryComponents.AvatarComponents.Sizes.SIZE_40 }), - _this.createStatusDot(log.status, log.mobile), + _this.createStatusDot(log.status, log.mobile, {marginRight: 6}), BDFDB.ReactUtils.createElement("di", { className: BDFDB.disCN._friendnotificationslogcontent, children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextScroller, { @@ -816,7 +816,7 @@ module.exports = (_ => { align: BDFDB.LibraryComponents.Flex.Align.CENTER, children: [ BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(toastString)), - this.createStatusDot(statusType, status.mobile) + this.createStatusDot(statusType, status.mobile, {marginLeft: 6}) ] }), { timeout: amounts.toastTime * 1000, @@ -839,9 +839,9 @@ module.exports = (_ => { }, amounts.checkInterval * 1000); } - createStatusDot (status, isMobile) { + createStatusDot (status, isMobile, style = {}) { return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Status, { - style: {marginLeft: 6}, + style: Object.assign({}, style), size: 12, color: isMobile ? BDFDB.UserUtils.getStatusColor(status, true) : null, isMobile: isMobile,