From c11054098e8fb7a3d2e0acf54ab1cefd6c0e97e6 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 28 Apr 2016 10:40:22 -0700 Subject: [PATCH] Fix page number interaction with thread icons. #849 --- src/classes/Thread.coffee | 6 +++--- src/css/style.css | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/classes/Thread.coffee b/src/classes/Thread.coffee index 1330e8240..ec11ba58c 100644 --- a/src/classes/Thread.coffee +++ b/src/classes/Thread.coffee @@ -21,10 +21,10 @@ class Thread g.threads.push @fullID, @ setPage: (pageNum) -> - {info, quote} = @OP.nodes - unless icon = $ '.page-num', info + {info, reply} = @OP.nodes + unless (icon = $ '.page-num', info) icon = $.el 'span', className: 'page-num' - $.after quote, [$.tn(' '), icon] + $.replace reply.parentNode.previousSibling, [$.tn(' '), icon, $.tn(' ')] icon.title = "This thread is on page #{pageNum} in the original index." icon.textContent = "[#{pageNum}]" @catalogView.nodes.pageCount.textContent = pageNum if @catalogView diff --git a/src/css/style.css b/src/css/style.css index 8a95af526..6df49bfb2 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -89,9 +89,6 @@ body.hasDropDownNav{ [hidden] { display: none !important; } -.page-num { - margin-right: -8px; -} .fileText a { unicode-bidi: -moz-isolate; unicode-bidi: -webkit-isolate;