From 16fe32a4187b56bb974d7621d1544c252089f4b9 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 27 Nov 2025 10:03:42 +0800 Subject: [PATCH 1/7] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8=E5=8E=9F?= =?UTF-8?q?=E7=94=9F=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.PdfReader/PdfReader.razor | 28 ++++++++++++++----- .../PdfReader.razor.css | 19 +++++++++++-- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor index a50b4d9e..aac526c4 100644 --- a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor +++ b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor @@ -17,8 +17,20 @@
-
-
+
+ + + + +
@@ -28,17 +40,19 @@
}
- - + } diff --git a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.css b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.css index 30032f0c..c57adedd 100644 --- a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.css +++ b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.css @@ -18,11 +18,11 @@ visibility: hidden; } - .bb-view-toolbar ::deep .btn { + .bb-view-toolbar .btn { --bs-btn-color: #fff; } - .bb-view-toolbar ::deep .dropdown-toggle::after { + .bb-view-toolbar .bb-view-controls .dropdown-toggle::after { content: none; } @@ -43,6 +43,20 @@ color: #6c757d; } + .bb-view-icon .dropdown-toggle-split { + padding-left: 0.25rem; + padding-right: 0.25rem; + } + + .bb-view-icon.btn-group .btn { + --bs-btn-padding-x: 0.5rem; + } + + .bb-view-icon.btn-group .dropdown-toggle-split { + padding-left: 0; + padding-right: 0; + } + .bb-view-subject { white-space: nowrap; display: block; @@ -59,7 +73,6 @@ flex-wrap: nowrap; align-items: center; justify-content: center; - overflow: hidden; } .bb-view-body.fit-page .bb-view-fit-page { From 2fa21f79449c17c44ca221aebcbe05e7249fbdfe Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 27 Nov 2025 11:16:09 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20FitMode=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.PdfReader/PdfReader.razor | 49 ++++++++++--------- .../PdfReader.razor.cs | 35 ++++++------- .../PdfReader.razor.css | 29 ++++++++--- .../PdfReader.razor.js | 18 ++----- .../PdfReaderFitMode.cs | 43 ++++++++++++++++ 5 files changed, 110 insertions(+), 64 deletions(-) create mode 100644 src/components/BootstrapBlazor.PdfReader/PdfReaderFitMode.cs diff --git a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor index aac526c4..bdccce83 100644 --- a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor +++ b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor @@ -8,44 +8,47 @@
- @_docTitle + @_docTitle
- /
+ / +
-
- -
-
-
- - - -
@if (ShowDownload) { -
+
} -
+