mirror of https://github.com/zulip/zulip.git
Hide text for the > icon so that copy paste captures it
Addresses Trac #1296 (imported from commit 650672b971f18b4e1bfb185987768b55504ee1e8)
This commit is contained in:
parent
6998d0c427
commit
5190a9692a
|
@ -608,6 +608,14 @@ td.pointer {
|
|||
top: -1px;
|
||||
}
|
||||
|
||||
.copy-paste-text {
|
||||
/* Hide the text that we want copy paste to capture */
|
||||
position: absolute;
|
||||
text-indent: -99999px;
|
||||
float: left;
|
||||
width: 0px;
|
||||
}
|
||||
|
||||
.message_header_colorblock {
|
||||
border-radius: 3px 0px 0px 0px;
|
||||
/* box-shadow: 0px 2px 3px #ccc; */
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{{#if invite_only}}<i class="icon-lock" title="This is an invite-only stream"></i>{{/if}}
|
||||
<span class="message_label_clickable narrows_by_recipient stream_label"
|
||||
title="Narrow to stream "{{display_recipient}}"">{{display_recipient}}</span>
|
||||
<i class="icon-vector-narrow icon-vector-small"></i>
|
||||
<i class="icon-vector-narrow icon-vector-small"></i><span class="copy-paste-text">></span>
|
||||
<span class="message_label_clickable narrows_by_subject"
|
||||
title="Narrow to stream "{{display_recipient}}", topic "{{subject}}"">{{#if ../../../../use_match_properties}}{{{match_subject}}}{{else}}{{subject}}{{/if}}</span>
|
||||
{{#if your_empty_subject}}<i class="icon-vector-pencil edit_subject"></i>{{/if}}
|
||||
|
|
|
@ -57,8 +57,8 @@ common.send_many([
|
|||
|
||||
common.wait_for_receive(function () {
|
||||
common.expected_messages('zhome', [
|
||||
'Verona frontend test',
|
||||
'Verona other subject',
|
||||
'Verona > frontend test',
|
||||
'Verona > other subject',
|
||||
'You and Cordelia Lear, King Hamlet',
|
||||
'You and Cordelia Lear'
|
||||
], [
|
||||
|
|
|
@ -47,7 +47,7 @@ common.send_many([
|
|||
|
||||
function expect_home() {
|
||||
common.expected_messages('zhome', [
|
||||
'Verona frontend test',
|
||||
'Verona > frontend test',
|
||||
'You and Cordelia Lear, King Hamlet',
|
||||
'You and Cordelia Lear'
|
||||
], [
|
||||
|
@ -59,9 +59,9 @@ function expect_home() {
|
|||
|
||||
function expect_stream() {
|
||||
common.expected_messages('zfilt', [
|
||||
'Verona frontend test',
|
||||
'Verona other subject',
|
||||
'Verona frontend test'
|
||||
'Verona > frontend test',
|
||||
'Verona > other subject',
|
||||
'Verona > frontend test'
|
||||
], [
|
||||
'<p>test message A</p>',
|
||||
'<p>test message B</p>',
|
||||
|
@ -72,7 +72,7 @@ function expect_stream() {
|
|||
|
||||
function expect_stream_subject() {
|
||||
common.expected_messages('zfilt', [
|
||||
'Verona frontend test'
|
||||
'Verona > frontend test'
|
||||
], [
|
||||
'<p>test message A</p>',
|
||||
'<p>test message B</p>',
|
||||
|
@ -82,9 +82,9 @@ function expect_stream_subject() {
|
|||
|
||||
function expect_subject() {
|
||||
common.expected_messages('zfilt', [
|
||||
'Verona frontend test',
|
||||
'Venice frontend test',
|
||||
'Verona frontend test'
|
||||
'Verona > frontend test',
|
||||
'Venice > frontend test',
|
||||
'Verona > frontend test'
|
||||
], [
|
||||
'<p>test message A</p>',
|
||||
'<p>test message B</p>',
|
||||
|
|
|
@ -41,7 +41,7 @@ casper.then(function () {
|
|||
|
||||
casper.waitUntilVisible('#zfilt', function () {
|
||||
// You can narrow to your starred messages.
|
||||
common.expected_messages('zfilt', ['Verona stars'], ['<p>test star</p>']);
|
||||
common.expected_messages('zfilt', ['Verona > stars'], ['<p>test star</p>']);
|
||||
common.un_narrow();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue