Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion plugins/AvatarHover.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ global.AvatarHover = function () {
avatarBorderRadius: "Border radius",
avatarBorderSize: "Border size",
avatarBorderColor: "Border color",
smallSize: "Image size (small)",
bigSize: "Image size (big)",
spacer: null,
isShown: "Force-show avatar",
isLarge: "Force large avatar",
Expand Down Expand Up @@ -159,7 +161,7 @@ global.AvatarHover = function () {
if (!(isShown && target)) {
return hoverCard.remove();
}
size = isLarge && 256 || 128;
size = isLarge && settings.bigSize || settings.smallSize;
boundsTarget = target.getBoundingClientRect();
boundsWindow = {
width: window.innerWidth,
Expand Down Expand Up @@ -192,6 +194,8 @@ global.AvatarHover = function () {
avatarBorderRadius: "4px",
avatarBorderSize: "1px",
avatarBorderColor: "black",
smallSize: 128,
bigSize: 256,
isShown: false,
isLarge: false,
isHoverGuilds: false,
Expand Down