diff --git a/web/viewer.css b/web/viewer.css index 1b3677642..1eba4115c 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -400,6 +400,7 @@ html[dir='rtl'] .secondaryToolbar { max-width: 200px; max-height: 400px; overflow-y: auto; + margin-bottom: -4px; } .doorHanger, @@ -894,20 +895,25 @@ html[dir="rtl"] .secondaryToolbarButton.print::before { content: url(images/toolbarButton-download.png); } -.toolbarButton.bookmark { +.toolbarButton.bookmark, +.secondaryToolbarButton.bookmark { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - margin-top: 3px; padding-top: 4px; + text-decoration: none; +} +.secondaryToolbarButton.bookmark { + padding-top: 5px; } -#viewBookmark[href='#'] { +.bookmark[href='#'] { opacity: .5; pointer-events: none; } -.toolbarButton.bookmark::before { +.toolbarButton.bookmark::before, +.secondaryToolbarButton.bookmark::before { content: url(images/toolbarButton-bookmark.png); } @@ -944,9 +950,11 @@ html[dir="rtl"] .secondaryToolbarButton { padding-right: 24px; text-align: right; } - -#secondaryToolbarButtonContainer :last-child { - margin-bottom: 0; +html[dir="ltr"] .secondaryToolbarButton.bookmark { + padding-left: 27px; +} +html[dir="rtl"] .secondaryToolbarButton.bookmark { + padding-right: 27px; } html[dir="ltr"] .secondaryToolbarButton > span { diff --git a/web/viewer.html b/web/viewer.html index f3aaaa4a4..c970b3236 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -137,21 +137,25 @@ limitations under the License. Download + + Current View + +
- -
- - @@ -199,7 +203,9 @@ limitations under the License. Download - Current View + + Current View +
diff --git a/web/viewer.js b/web/viewer.js index 94b3290d8..bba2a8a65 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -1728,6 +1728,7 @@ function updateViewarea() { }); var href = PDFView.getAnchorUrl(pdfOpenParams); document.getElementById('viewBookmark').href = href; + document.getElementById('secondaryViewBookmark').href = href; // Update the current bookmark in the browsing history. PDFHistory.updateCurrentBookmark(pdfOpenParams, pageNumber); @@ -1771,6 +1772,8 @@ window.addEventListener('change', function webViewerChange(evt) { // URL does not reflect proper document location - hiding some icons. document.getElementById('viewBookmark').setAttribute('hidden', 'true'); + document.getElementById('secondaryViewBookmark'). + setAttribute('hidden', 'true'); document.getElementById('download').setAttribute('hidden', 'true'); document.getElementById('secondaryDownload').setAttribute('hidden', 'true'); }, true);