This commit is contained in:
Mirco Wittrien 2020-02-03 15:39:16 +01:00
parent 1deb4cd66f
commit b29f84ff85
3 changed files with 8 additions and 9 deletions

View File

@ -4404,7 +4404,6 @@
var DiscordClassModules = {};
DiscordClassModules.BDFDB = {
BDFDBundefined: "BDFDB_undefined",
avatarBadgeWrapper: "wrapper-hd42F_",
avatarStatusHovered: "statusHovered-gF2976",
cardInner: "inner-OP_8zd",
cardWrapper: "card-rT4Wbb",
@ -4936,7 +4935,6 @@
autocompleteselected: ["Autocomplete", "selectorSelected"],
autocompleteselector: ["Autocomplete", "selector"],
avatar: ["Avatar", "avatar"],
avatarbadgewrapper: ["BDFDB", "avatarBadgeWrapper"],
avatarcursordefault: ["Avatar", "cursorDefault"],
avataricon: ["AvatarIcon", "icon"],
avatariconactivelarge: ["AvatarIcon", "iconActiveLarge"],
@ -8436,6 +8434,11 @@
text-decoration: line-through;
}
${BDFDB.dotCN.avatarwrapper + BDFDB.dotCN.messageavatar} {
overflow: visible;
border-radius: 0;
}
${BDFDB.dotCN.favbuttoncontainer} {
display: flex;
position: relative;
@ -9731,9 +9734,9 @@
InternalBDFDB._processAvatarRender = function (user, avatar) {
if (BDFDB.ReactUtils.isValidElement(avatar) && BDFDB.ObjectUtils.is(user)) {
let changed = false;
if (avatar.type == "img") avatar = BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.avatarbadgewrapper,
children: avatar
if (avatar.type == "img") avatar = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatar, Object.assign({}, avatar.props, {
className: BDFDB.DOMUtils.formatClassName((avatar.props.className || "").replace(BDFDB.disCN.avatar, "")),
size: BDFDB.LibraryComponents.Avatar.Sizes.SIZE_40
});
avatar.props["user_by_BDFDB"] = user.id;
if (BDFDB_Patrons.includes(user.id) && BDFDB.DataUtils.get(BDFDB, "settings", "showSupportBadges")) {

View File

@ -70,7 +70,6 @@
left: 7px !important;
}
.wrapper-hd42F_.supporter-Z3FfwL:after,
.wrapper-3t9DeA.supporter-Z3FfwL:after {
content: "" !important;
-webkit-mask: var(--supporterbadge) center/cover no-repeat !important;
@ -88,7 +87,6 @@
left: -1px !important;
bottom: -1px !important;
}
.wrapper-hd42F_.supporter-Z3FfwL,
.wrapper-3t9DeA.supporter-Z3FfwL [mask="url(#svg-mask-avatar-default)"] {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><circle fill="white" cx="0.5" cy="0.5" r="0.5"></circle><rect fill="black" x="-0.15" y="0.6375" width="0.5" height="0.5" rx="0.13125" ry="0.13125"></rect></svg>');
}

View File

@ -70,7 +70,6 @@
left: 7px !important;
}
.wrapper-hd42F_.dev-A7f2Rx:after,
.wrapper-3t9DeA.dev-A7f2Rx:after {
content: "" !important;
-webkit-mask: var(--themedevbadge) center/cover no-repeat !important;
@ -88,7 +87,6 @@
left: -1px !important;
bottom: -1px !important;
}
.wrapper-hd42F_.dev-A7f2Rx,
.wrapper-3t9DeA.dev-A7f2Rx [mask="url(#svg-mask-avatar-default)"] {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><circle fill="white" cx="0.5" cy="0.5" r="0.5"></circle><rect fill="black" x="-0.15" y="0.6375" width="0.5" height="0.5" rx="0.13125" ry="0.13125"></rect></svg>');
}