Skip to content

Commit

Permalink
Merge pull request #17 from mblink/v0.6.1
Browse files Browse the repository at this point in the history
remove "Page" label at xs screen size
  • Loading branch information
SuttonKyle authored Mar 18, 2024
2 parents 2c24cfa + 6d6aa44 commit 467b866
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "document-viewer-ts",
"version": "0.6.0-legacy",
"version": "0.6.1-legacy",
"description": "PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript",
"main": "dist/lib/index.js",
"module": "dist/es2015/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const renderPDF = async (containerDiv: Element, documentUrl: string) => {
pageNumberInput.className = 'page-number-input';
pageNumberInput.type = 'number';
const pageDiv = document.createElement('div');
pageDiv.className = 'page-label';
const outOfDiv = document.createElement('div');
const pageCountDiv = document.createElement('div');
const nextButton = document.createElement('button');
Expand Down
7 changes: 7 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ div.document-viewer-ts.viewer-container {
z-index: 999;
}

.page-label {
display: none;
@media (min-width: 36em) {
display: flex;
}
}

.document-viewer-ts .viewer-controls:hover {
opacity: 1;
}
Expand Down

0 comments on commit 467b866

Please sign in to comment.