mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -04:00
fix(whoReacted): fix avatar click (#167)
* fix white typing indicators in servers (#166) * Drop DoNotLeak + Extras Co-Authored-By: thororen1234 <thororen1234@users.noreply.github.com> Co-Authored-By: thororen <78185467+thororen1234@users.noreply.github.com> Co-Authored-By: sadan4 <117494111+sadan4@users.noreply.github.com> Co-Authored-By: ynot01 <ynot000001@gmail.com> Co-Authored-By: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com> Co-Authored-By: Crxaw <48805031+sitescript@users.noreply.github.com> * Finish Purge For Merge * fix(whoReacted): fix avatar click (#1) * Update index.tsx * Fixes --------- Co-authored-by: thororen1234 <thororen1234@users.noreply.github.com> Co-authored-by: mochie <mop48duck+cassie@gmail.com> Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com> Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com> Co-authored-by: ynot01 <ynot000001@gmail.com> Co-authored-by: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com> Co-authored-by: Crxaw <48805031+sitescript@users.noreply.github.com>
This commit is contained in:
parent
d832344adb
commit
c46476ea10
1 changed files with 16 additions and 26 deletions
|
@ -102,7 +102,7 @@ const settings = definePluginSettings({
|
||||||
avatarClick: {
|
avatarClick: {
|
||||||
description: "Toggle clicking avatars in reactions",
|
description: "Toggle clicking avatars in reactions",
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
default: false,
|
default: true,
|
||||||
restartNeeded: true
|
restartNeeded: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -175,31 +175,21 @@ export default definePlugin({
|
||||||
<div
|
<div
|
||||||
style={{ marginLeft: "0.5em", transform: "scale(0.9)" }}
|
style={{ marginLeft: "0.5em", transform: "scale(0.9)" }}
|
||||||
>
|
>
|
||||||
{settings.store.avatarClick ? (
|
<div
|
||||||
<div onClick={handleClickAvatar} onKeyPress={handleClickAvatar}>
|
onClick={handleClickAvatar}
|
||||||
<UserSummaryItem
|
onKeyDown={handleClickAvatar}
|
||||||
users={users}
|
style={settings.store.avatarClick ? {} : { pointerEvents: "none" }}
|
||||||
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
>
|
||||||
renderIcon={false}
|
<UserSummaryItem
|
||||||
max={5}
|
users={users}
|
||||||
showDefaultAvatarsForNullUsers
|
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
||||||
showUserPopout
|
renderIcon={false}
|
||||||
renderMoreUsers={makeRenderMoreUsers(users)}
|
max={5}
|
||||||
/>
|
showDefaultAvatarsForNullUsers
|
||||||
</div>
|
showUserPopout
|
||||||
) : (
|
renderMoreUsers={makeRenderMoreUsers(users)}
|
||||||
<div>
|
/>
|
||||||
<UserSummaryItem
|
</div>
|
||||||
users={users}
|
|
||||||
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
|
||||||
renderIcon={false}
|
|
||||||
max={5}
|
|
||||||
showDefaultAvatarsForNullUsers
|
|
||||||
showUserPopout
|
|
||||||
renderMoreUsers={makeRenderMoreUsers(users)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue