Fix wrapping for already sent friend req button

This commit is contained in:
DianaXWiki 2025-12-04 15:52:05 +02:00
parent 513dcaee07
commit d02544cfc4
2 changed files with 1 additions and 4 deletions

View File

@ -194,9 +194,6 @@
.cp-app-profile-friend-request.btn-success {
margin-right: 0.5rem;
}
.cp-app-profile-friend-request b {
margin-right: 0.3rem;
}
// I tried using flexbox but messed with how the pencil icon was displayed
#cp-app-profile-invite-button {

View File

@ -236,7 +236,7 @@ define([
// If this curve has sent us a friend request, we should not be able to sent it to them
var friendRequests = common.getFriendRequests();
if (friendRequests[data.curvePublic]) {
$button.append(Messages._getKey('friendRequest_received', [name || Messages.anonymous]))
$button.append(UI.setHTML(h('span'), Messages._getKey('friendRequest_received', [name || Messages.anonymous])))
.click(function () {
UIElements.displayFriendRequestModal(common, friendRequests[data.curvePublic]);
});