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
|
||||
{
|
||||
<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++)
|
||||
{
|
||||
var pagePreview = pageIndex < Pages.Count ? Pages[pageIndex] : null;
|
||||
|
||||
Reference in New Issue
Block a user