mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Remove the "Open file"-button from the main toolbar
This button is *only* used in the GENERIC viewer, and will currently be visible either in the main or secondary toolbars (depending on the viewer width). To simplify upcoming changes, and to avoid then having to complicate the relevant CSS rules unnecessarily, let's place the "Open file"-button permanently in the secondary toolbar instead. (Note that the GENERIC viewer also, since five years, supports drag-and-drop in order to open local files.)
This commit is contained in:
parent
42f3d57365
commit
bf016743fc
4 changed files with 4 additions and 29 deletions
|
@ -52,10 +52,6 @@ function getViewerConfiguration() {
|
|||
zoomIn: document.getElementById("zoomIn"),
|
||||
zoomOut: document.getElementById("zoomOut"),
|
||||
viewFind: document.getElementById("viewFind"),
|
||||
openFile:
|
||||
typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")
|
||||
? document.getElementById("openFile")
|
||||
: null,
|
||||
print: document.getElementById("print"),
|
||||
editorFreeTextButton: document.getElementById("editorFreeText"),
|
||||
editorFreeTextParamsToolbar: document.getElementById(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue