Skip to content

Commit

Permalink
Merge pull request #445 from DimK10/Feature-request-pdf-reader
Browse files Browse the repository at this point in the history
Adds navbar logo to pdf viewer
  • Loading branch information
Frooodle authored Oct 27, 2023
2 parents a1e93e0 + e51a9c2 commit bd0bf40
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/static/pdfjs/css/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -2352,14 +2352,14 @@ body {
.secondaryToolbar,
.editorParamsToolbar {
position: relative;
height: 32px;
height: 35px;
background-color: var(--toolbar-bg-color);
box-shadow: var(--toolbar-box-shadow);
border-bottom: var(--toolbar-border-bottom);
}

#toolbarViewer {
height: 32px;
height: 35px;
}

#loadingBar {
Expand Down
14 changes: 14 additions & 0 deletions src/main/resources/templates/view-pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
<meta name="google" content="notranslate">
<title>PDF.js viewer</title>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>

<!-- This snippet is used in production (included from view-pdf.html) -->
<link rel="resource" type="application/l10n" href="/pdfjs/locale/locale.properties">
<script src="/pdfjs/pdf.js"></script>
Expand Down Expand Up @@ -336,6 +342,14 @@
tabindex="15"
data-l10n-id="page" autocomplete="off">
<span id="numPages" class="toolbarLabel"></span>
<a class="navbar-brand mt-1 hiddenLargeView" href="/">
<img class="main-icon" src="favicon.svg" alt="icon" style="max-height: 1.8rem;">
<span class="icon-text mt-1" style="color: #ffffff;">Stirling PDF</span>
</a>
<a class="navbar-brand mt-1 visibleLargeView" href="/">
<img class="main-icon" src="favicon.svg" alt="icon" style="max-height: 1.8rem;">
</a>

</div>
<div id="toolbarViewerRight">

Expand Down

0 comments on commit bd0bf40

Please sign in to comment.