Add conditional toolbar styling for PDF image editor
Updated `SenderPdfImageEditor.razor` to conditionally apply the `sender-image-editor__pages--no-toolbar` class based on the `ShowToolbar` property. Added a corresponding CSS rule in `envelope-viewer.css` to remove top padding when the toolbar is hidden.
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<div class="sender-image-editor__pages" style="@GetZoomStyle()">
|
<div class="sender-image-editor__pages @(ShowToolbar ? string.Empty : "sender-image-editor__pages--no-toolbar")" style="@GetZoomStyle()">
|
||||||
@for (var pageIndex = 0; pageIndex < PageCount; pageIndex++)
|
@for (var pageIndex = 0; pageIndex < PageCount; pageIndex++)
|
||||||
{
|
{
|
||||||
var pagePreview = pageIndex < Pages.Count ? Pages[pageIndex] : null;
|
var pagePreview = pageIndex < Pages.Count ? Pages[pageIndex] : null;
|
||||||
|
|||||||
@@ -282,6 +282,10 @@
|
|||||||
padding-top: 5.15rem;
|
padding-top: 5.15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__pages.sender-image-editor__pages--no-toolbar {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.sender-image-editor__native-preview {
|
.sender-image-editor__native-preview {
|
||||||
max-width: 1040px;
|
max-width: 1040px;
|
||||||
margin: 5.15rem auto 1rem;
|
margin: 5.15rem auto 1rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user