1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-08-20 13:20:39 +02:00

Merge pull request #445 from DimK10/Feature-request-pdf-reader

Adds navbar logo to pdf viewer
This commit is contained in:
Anthony Stirling 2023-10-27 18:28:33 +01:00 committed by GitHub
commit bd0bf404f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View File

@ -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 {

View File

@ -27,6 +27,12 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta name="google" content="notranslate">
<title>PDF.js viewer</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/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>
@ -336,6 +342,14 @@ See https://github.com/adobe-type-tools/cmap-resources
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">