Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>10.0.9</Version>
<Version>10.0.10</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/components/BootstrapBlazor.PdfReader/PdfReader.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
<span class="bb-view-subject">@_docTitle</span>
</div>
<div class="bb-view-group bb-view-toolbar-main">
<div class="bb-view-group bb-view-toolbar-main invisible">
<div class="bb-view-group bb-view-group-page">
<input type="text" class="bb-view-num" value="1" /><span class="bb-view-slash">/</span>
<div class="bb-view-pagesCount"></div>
Expand Down Expand Up @@ -42,7 +42,7 @@
<div class="bb-view-icon bb-view-rotate-right" title="@Localizer["RotateRight"]"><i class="fa-solid fa-fw fa-rotate-right"></i></div>
</div>
</div>
<div class="bb-view-group bb-view-controls">
<div class="bb-view-group bb-view-controls invisible">
@if (ShowDownload)
{
<div class="bb-view-icon bb-view-download" title="@Localizer["Download"]" @onclick="OnDownload"><i class="fa-solid fa-fw fa-arrow-right-to-bracket fa-rotate-90"></i></div>
Expand Down Expand Up @@ -98,7 +98,7 @@
</div>
</div>
</div>
<div class="bb-view-pdf-info">
<div class="bb-view-pdf-info invisible">
<div class="bb-view-pdf-backdrop"></div>
<div class="bb-view-pdf-dialog">
<div class="bb-view-pdf-dialog-title mb-3">@Localizer["DocumentProperties"]</div>
Expand Down
5 changes: 4 additions & 1 deletion src/components/BootstrapBlazor.PdfReader/PdfReader.razor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (pdfjsLib != null) {
}

export async function init(id, invoke, options) {
await addLink('./_content/BootstrapBlazor.PdfReader/css/pdf_viewer.css');
await addLink('./_content/BootstrapBlazor.PdfReader/css/pdf_reader.css');

const el = document.getElementById(id);
if (el === null) {
Expand Down Expand Up @@ -371,6 +371,9 @@ const addEventBus = (el, pdfViewer, eventBus, invoke, options) => {

const addToolbarEventHandlers = (el, pdfViewer, invoke, options) => {
const toolbar = el.querySelector(".bb-view-toolbar");
[...el.querySelectorAll('.invisible')].forEach(i => {
i.classList.remove('invisible');
});

EventHandler.on(toolbar, "click", '.bb-view-bar', e => {
const thumbnailsEl = el.querySelector(".bb-view-thumbnails");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('pdf_viewer.css');

.bb-pdf-reader {
--bb-pdf-view-height: 600px;
--bb-pdf-toolbar-height: 60px;
Expand Down Expand Up @@ -163,20 +165,20 @@
flex-basis: 300px;
}

::deep .bb-view-thumbnail-item {
.bb-view-thumbnail-item {
display: block;
text-align: center;
}

::deep .bb-view-thumbnail-item:not(:last-child) {
.bb-view-thumbnail-item:not(:last-child) {
margin-block-end: 1rem;
}

::deep .bb-view-thumbnail-item.active img {
.bb-view-thumbnail-item.active img {
border: 2px solid #0d6efd;
}

::deep .bb-view-thumbnail-item img {
.bb-view-thumbnail-item img {
width: 128px;
padding: 1px;
cursor: pointer;
Expand All @@ -185,13 +187,13 @@
margin: 0 auto;
}

::deep .bb-view-thumbnail-item .bb-view-thumbnail-group {
.bb-view-thumbnail-item .bb-view-thumbnail-group {
display: flex;
flex-direction: column;
justify-content: center;
}

::deep .bb-view-thumbnail-item .bb-view-thumbnail-group label {
.bb-view-thumbnail-item .bb-view-thumbnail-group label {
color: #fff;
}

Expand Down
Loading