From c9698e125a2e4209503938ab1ca72c1d5359b73b Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 10 Feb 2016 17:04:48 +0000 Subject: [PATCH] Improved copyable text --- app/js/directives.js | 4 ++-- app/less/desktop.less | 14 +++++--------- app/partials/desktop/message.html | 7 +++++-- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/js/directives.js b/app/js/directives.js index 4881887a..a7321a47 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -2855,7 +2855,7 @@ angular.module('myApp.directives', ['myApp.filters']) var peerID, peer, peerPhoto; var imgEl = $(''); - var initEl = $(''); + var initEl = $(''); var jump = 0; var prevClass = false; @@ -2896,7 +2896,7 @@ angular.module('myApp.directives', ['myApp.filters']) } } - initEl.text(peer.initials).prependTo(element); + initEl.attr('data-content', encodeEntities(peer.initials)).prependTo(element); imgEl.remove(); diff --git a/app/less/desktop.less b/app/less/desktop.less index 1f70db60..2412bc91 100644 --- a/app/less/desktop.less +++ b/app/less/desktop.less @@ -1796,18 +1796,14 @@ a.im_panel_peer_photo .peer_initials { margin-top: 4px; margin-bottom: 4px; } -.im_grouped_short .im_message_author_via, +.im_grouped_short .im_message_author_wrap, .im_grouped_short .im_message_from_photo, -.im_grouped_short .im_message_author, -.im_grouped .im_message_author_via, +.im_grouped .im_message_author_wrap, .im_grouped .im_message_from_photo, -.im_grouped .im_message_author, -.im_grouped_fwd .im_message_author_via, +.im_grouped_fwd .im_message_author_wrap, .im_grouped_fwd .im_message_from_photo, -.im_grouped_fwd .im_message_author, -.im_grouped_fwd_short .im_message_author_via, -.im_grouped_fwd_short .im_message_from_photo, -.im_grouped_fwd_short .im_message_author { +.im_grouped_fwd_short .im_message_author_wrap, +.im_grouped_fwd_short .im_message_from_photo { display: none; } diff --git a/app/partials/desktop/message.html b/app/partials/desktop/message.html index 9fc96997..33db091c 100644 --- a/app/partials/desktop/message.html +++ b/app/partials/desktop/message.html @@ -44,7 +44,10 @@
- [] : + + []  : + + @@ -52,7 +55,7 @@
-  [ +   [