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:
2026-11-30 13:19:39 +01:00
parent 176bf35689
commit 3eb74e8054
2 changed files with 5 additions and 1 deletions

View File

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