mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix wrapping for already sent friend req button
This commit is contained in:
parent
513dcaee07
commit
d02544cfc4
@ -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 {
|
||||
|
||||
@ -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]);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user