diff --git a/web/app.js b/web/app.js index 30073cc01..63eb8a9ce 100644 --- a/web/app.js +++ b/web/app.js @@ -810,9 +810,7 @@ const PDFViewerApplication = { */ _hideViewBookmark() { // URL does not reflect proper document location - hiding some buttons. - const { toolbar, secondaryToolbar } = this.appConfig; - toolbar.viewBookmark.hidden = true; - secondaryToolbar.viewBookmarkButton.hidden = true; + this.appConfig.secondaryToolbar.viewBookmarkButton.hidden = true; }, /** @@ -2292,7 +2290,6 @@ function webViewerInitialized() { } if (!PDFViewerApplication.supportsFullscreen) { - appConfig.toolbar.presentationModeButton.classList.add("hidden"); appConfig.secondaryToolbar.presentationModeButton.classList.add("hidden"); } @@ -2445,7 +2442,6 @@ function webViewerUpdateViewarea({ location }) { const href = PDFViewerApplication.pdfLinkService.getAnchorUrl( location.pdfOpenParams ); - PDFViewerApplication.appConfig.toolbar.viewBookmark.href = href; PDFViewerApplication.appConfig.secondaryToolbar.viewBookmarkButton.href = href; diff --git a/web/toolbar.js b/web/toolbar.js index 183d072d8..c03eaea8e 100644 --- a/web/toolbar.js +++ b/web/toolbar.js @@ -42,13 +42,9 @@ const PAGE_NUMBER_LOADING_INDICATOR = "visiblePageIsLoading"; * @property {HTMLButtonElement} zoomOut - Button to zoom out the pages. * @property {HTMLButtonElement} viewFind - Button to open find bar. * @property {HTMLButtonElement} openFile - Button to open a new document. - * @property {HTMLButtonElement} presentationModeButton - Button to switch to - * presentation mode. * @property {HTMLButtonElement} editorFreeTextButton - Button to switch to * FreeText editing. * @property {HTMLButtonElement} download - Button to download the document. - * @property {HTMLAnchorElement} viewBookmark - Button to obtain a bookmark link - * to the current location in the document. */ class Toolbar { @@ -69,12 +65,7 @@ class Toolbar { { element: options.zoomIn, eventName: "zoomin" }, { element: options.zoomOut, eventName: "zoomout" }, { element: options.print, eventName: "print" }, - { - element: options.presentationModeButton, - eventName: "presentationmode", - }, { element: options.download, eventName: "download" }, - { element: options.viewBookmark, eventName: null }, { element: options.editorFreeTextButton, eventName: "switchannotationeditormode", diff --git a/web/viewer.css b/web/viewer.css index 8fe1e7d80..160587173 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -882,8 +882,7 @@ select { mask-image: var(--toolbarButton-zoomIn-icon); } -#presentationMode::before, -#secondaryPresentationMode::before { +#presentationMode::before { mask-image: var(--toolbarButton-presentationMode-icon); } @@ -922,8 +921,7 @@ a.secondaryToolbarButton[href="#"] { pointer-events: none; } -#viewBookmark::before, -#secondaryViewBookmark::before { +#viewBookmark::before { mask-image: var(--toolbarButton-bookmark-icon); } @@ -979,6 +977,7 @@ a.secondaryToolbarButton[href="#"] { white-space: normal; border-radius: 0; box-sizing: border-box; + display: inline-block; } .secondaryToolbarButton > span { padding-inline-end: 4px; @@ -1456,8 +1455,7 @@ dialog :link { } .visibleLargeView, -.visibleMediumView, -.visibleSmallView { +.visibleMediumView { display: none; } @@ -1503,9 +1501,6 @@ dialog :link { .hiddenSmallView * { display: none; } - .visibleSmallView { - display: inherit; - } .toolbarButtonSpacer { width: 0; } diff --git a/web/viewer.html b/web/viewer.html index 340057995..e6880f235 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -180,29 +180,31 @@ See https://github.com/adobe-type-tools/cmap-resources