Hide text for the > icon so that copy paste captures it

Addresses Trac #1296

(imported from commit 650672b971f18b4e1bfb185987768b55504ee1e8)
This commit is contained in:
Jeff Arnold 2013-07-17 16:53:07 -04:00
parent 6998d0c427
commit 5190a9692a
5 changed files with 20 additions and 12 deletions

View File

@ -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; */

View File

@ -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 &quot;{{display_recipient}}&quot;">{{display_recipient}}</span>
&nbsp;<i class="icon-vector-narrow icon-vector-small"></i>&nbsp;
&nbsp;<i class="icon-vector-narrow icon-vector-small"></i><span class="copy-paste-text">&gt;</span>&nbsp;
<span class="message_label_clickable narrows_by_subject"
title="Narrow to stream &quot;{{display_recipient}}&quot;, topic &quot;{{subject}}&quot;">{{#if ../../../../use_match_properties}}{{{match_subject}}}{{else}}{{subject}}{{/if}}</span>
{{#if your_empty_subject}}<i class="icon-vector-pencil edit_subject"></i>{{/if}}

View File

@ -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'
], [

View File

@ -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>',

View File

@ -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();
});