Fixes For MutualGroupDMs & ServerInfo
Some checks are pending
Release / Build Equicord (push) Waiting to run
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-04-30 23:01:36 -04:00
parent 6e2c8e5984
commit 385b58c7ff
No known key found for this signature in database
2 changed files with 13 additions and 12 deletions

View file

@ -32,8 +32,8 @@ const SelectedChannelActionCreators = findByPropsLazy("selectPrivateChannel");
const UserUtils = findByPropsLazy("getGlobalName"); const UserUtils = findByPropsLazy("getGlobalName");
const ProfileListClasses = findByPropsLazy("emptyIconFriends", "emptyIconGuilds"); const ProfileListClasses = findByPropsLazy("emptyIconFriends", "emptyIconGuilds");
const MutualsListClasses = findByPropsLazy("row", "icon", "name", "nick");
const ExpandableList = findComponentByCodeLazy('"PRESS_SECTION"', ".header"); const ExpandableList = findComponentByCodeLazy('"PRESS_SECTION"', ".header");
const GuildLabelClasses = findByPropsLazy("guildNick", "guildAvatarWithoutIcon");
function getGroupDMName(channel: Channel) { function getGroupDMName(channel: Channel) {
return channel.name || return channel.name ||
@ -59,21 +59,22 @@ function renderClickableGDMs(mutualDms: Channel[], onClose: () => void) {
return mutualDms.map(c => ( return mutualDms.map(c => (
<Clickable <Clickable
key={c.id} key={c.id}
className={ProfileListClasses.listRow}
onClick={() => { onClick={() => {
onClose(); onClose();
SelectedChannelActionCreators.selectPrivateChannel(c.id); SelectedChannelActionCreators.selectPrivateChannel(c.id);
}} }}
> >
<div className={MutualsListClasses.row}>
<Avatar <Avatar
src={IconUtils.getChannelIconURL({ id: c.id, icon: c.icon, size: 32 })} src={IconUtils.getChannelIconURL({ id: c.id, icon: c.icon, size: 32 })}
size="SIZE_40" size="SIZE_40"
className={ProfileListClasses.listAvatar} className={MutualsListClasses.icon}
> >
</Avatar> </Avatar>
<div className={ProfileListClasses.listRowContent}> <div className={MutualsListClasses.details}>
<div className={ProfileListClasses.listName}>{getGroupDMName(c)}</div> <div className={MutualsListClasses.name}>{getGroupDMName(c)}</div>
<div className={GuildLabelClasses.guildNick}>{c.recipients.length + 1} Members</div> <div className={MutualsListClasses.nick}>{c.recipients.length + 1} Members</div>
</div>
</div> </div>
</Clickable> </Clickable>
)); ));

View file

@ -41,9 +41,9 @@
border-bottom: 2px solid var(--background-modifier-accent); border-bottom: 2px solid var(--background-modifier-accent);
margin: 20px 12px 0; margin: 20px 12px 0;
display: flex; display: flex;
gap: 40px;
align-items: stretch; align-items: stretch;
flex-direction: row; flex-direction: row;
justify-content: center;
} }
.vc-gp-tab { .vc-gp-tab {