From d02544cfc4222f32fa30ebdce02be6a7b8661af5 Mon Sep 17 00:00:00 2001 From: DianaXWiki Date: Thu, 4 Dec 2025 15:52:05 +0200 Subject: [PATCH] Fix wrapping for already sent friend req button --- www/profile/app-profile.less | 3 --- www/profile/inner.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/www/profile/app-profile.less b/www/profile/app-profile.less index 236b6c51b..eef7256f5 100644 --- a/www/profile/app-profile.less +++ b/www/profile/app-profile.less @@ -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 { diff --git a/www/profile/inner.js b/www/profile/inner.js index d8c8344c7..e0a1edefe 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -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]); });