Random changes

This commit is contained in:
Bill 2022-03-14 06:54:10 -04:00
parent d860a49a9f
commit eadd1290f4
3 changed files with 4 additions and 36 deletions

View File

@ -47,7 +47,7 @@ export const FriendsSearchView: FC<FriendsSearchViewProps> = props =>
return (
<NitroCardAccordionSetView { ...rest }>
<input type="text" className="search-input form-control form-control-sm w-100 rounded-0" placeholder={ LocalizeText('generic.search') } value={ searchValue } onChange={ event => setSearchValue(event.target.value) } />
<input type="text" className="search-input form-control form-control-sm w-100 rounded-0" placeholder={ LocalizeText('generic.search') } value={ searchValue } maxLength={ 50 } onChange={ event => setSearchValue(event.target.value) } />
<Column>
{ friendResults &&
<>
@ -104,38 +104,6 @@ export const FriendsSearchView: FC<FriendsSearchViewProps> = props =>
</Column> }
</> }
</Column>
{/* <NitroCardAccordionView>
<NitroCardAccordionSetView headerText={ LocalizeText('friendlist.search.friendscaption', [ 'cnt' ], [ friendResults.length.toString() ]) } isExpanded={ true }>
{ (friendResults.length > 0) && friendResults.map(result =>
{
return (
<NitroCardAccordionItemView key={ result.avatarId }>
<UserProfileIconView userId={ result.avatarId } />
<Flex>{ result.avatarName }</Flex>
<Flex className="ms-auto align-items-center" gap={ 1 }>
{ result.isAvatarOnline &&
<Base className="nitro-friends-spritesheet icon-chat cursor-pointer" onClick={ event => OpenMessengerChat(result.avatarId) } title={ LocalizeText('friendlist.tip.im') } /> }
</Flex>
</NitroCardAccordionItemView>
);
}) }
</NitroCardAccordionSetView>
<NitroCardAccordionSetView headerText={ LocalizeText('friendlist.search.otherscaption', [ 'cnt' ], [ otherResults.length.toString() ]) } isExpanded={ true }>
{ (otherResults.length > 0) && otherResults.map(result =>
{
return (
<NitroCardAccordionItemView key={ result.avatarId }>
<UserProfileIconView userId={ result.avatarId } />
<Base>{ result.avatarName }</Base>
<Flex className="ms-auto align-items-center" gap={ 1 }>
{ canRequestFriend(result.avatarId) &&
<Base className="nitro-friends-spritesheet icon-add cursor-pointer" onClick={ event => requestFriend(result.avatarId, result.avatarName) } title={ LocalizeText('friendlist.tip.addfriend') } /> }
</Flex>
</NitroCardAccordionItemView>
);
}) }
</NitroCardAccordionSetView>
</NitroCardAccordionView> */}
</NitroCardAccordionSetView>
);
}

View File

@ -68,7 +68,7 @@ export const GuideToolMenuView: FC<GuideToolMenuViewProps> = props =>
</Flex>
<hr className="bg-dark m-0" />
<Flex justifyContent="between" gap={ 2 }>
<Button onClick={ event => processAction('forum_link') }>{ LocalizeText('guide.help.guide.tool.forum.link') }</Button>
<Button disabled onClick={ event => processAction('forum_link') }>{ LocalizeText('guide.help.guide.tool.forum.link') }</Button>
<Button disabled>{ LocalizeText('guide.help.guide.tool.skill.link') }</Button>
</Flex>
</Column>

View File

@ -29,9 +29,9 @@ export const InfoStandWidgetUserRelationshipsView: FC<InfoStandWidgetUserRelatio
<Flex alignItems="center" gap={ 1 }>
<i className={`nitro-friends-spritesheet icon-${relationshipName}`} />
<Flex alignItems="center" gap={ 0 }>
<Text variant="white" onClick={ event => GetUserProfile(relationshipInfo.randomFriendId) }>{ relationshipInfo.randomFriendName }</Text>
<Text small variant="white" onClick={ event => GetUserProfile(relationshipInfo.randomFriendId) }>{ relationshipInfo.randomFriendName }</Text>
{ (relationshipInfo.friendCount > 1) &&
<Text variant="white">{ ' ' + LocalizeText(`extendedprofile.relstatus.others.${ relationshipName }`, [ 'count' ], [ (relationshipInfo.friendCount - 1).toString() ]) }</Text> }
<Text small variant="white">{ ' ' + LocalizeText(`extendedprofile.relstatus.others.${ relationshipName }`, [ 'count' ], [ (relationshipInfo.friendCount - 1).toString() ]) }</Text> }
</Flex>
</Flex>
);