Replace DxButton with HTML buttons and update styles

Replaced DevExpress DxButton components with standard HTML
<button> elements in EnvelopeSenderEditorPage.razor for
"Add Receiver" and "Add Signature" actions. The new buttons
include SVG icons and text for improved customization and
styling.

Updated envelope-viewer.css to add new styles for the
buttons, including `.sender-toolbar-action-btn` and
`.sender-toolbar-action-btn--compact` classes. Removed
unused styles related to DxButton components and adjusted
`.sender-receiver-chip__action` for proper width handling.

These changes improve design flexibility and maintainability.
This commit is contained in:
2026-07-01 17:02:19 +02:00
parent ca24a96084
commit 2af8815cf6
2 changed files with 26 additions and 17 deletions

View File

@@ -49,11 +49,14 @@
<span class="sender-receivers-panel__count">@_receivers.Count</span>
</div>
<DxButton CssClass="sender-receivers-panel__add-btn pdf-toolbar-like-btn pdf-toolbar-like-btn--add"
Text="Empfänger hinzufügen"
RenderStyle="ButtonRenderStyle.Secondary"
SizeMode="SizeMode.Small"
Click="OpenAddReceiverPopup" />
<button class="pdf-toolbar__btn pdf-toolbar__btn--signature-change sender-toolbar-action-btn"
@onclick="OpenAddReceiverPopup"
title="Empfänger hinzufügen">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 1a.5.5 0 0 1 .5.5v6h6a.5.5 0 0 1 0 1h-6v6a.5.5 0 0 1-1 0v-6h-6a.5.5 0 0 1 0-1h6v-6A.5.5 0 0 1 8 1z" />
</svg>
<span class="pdf-toolbar__btn-text">Empfänger hinzufügen</span>
</button>
</div>
@if (_receivers.Count == 0)
@@ -73,11 +76,14 @@
<div class="sender-receiver-chip__email">@receiver.Email</div>
</div>
<DxButton CssClass="sender-receiver-chip__action pdf-toolbar-like-btn pdf-toolbar-like-btn--signature"
Text="Signatur hinzufügen"
RenderStyle="ButtonRenderStyle.Secondary"
SizeMode="SizeMode.Small"
Click="@(() => AddSignatureForReceiver(receiver))" />
<button class="pdf-toolbar__btn pdf-toolbar__btn--signature-change sender-toolbar-action-btn sender-toolbar-action-btn--compact"
@onclick="() => AddSignatureForReceiver(receiver)"
title="Signatur hinzufügen">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
<path d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10z" />
</svg>
<span class="pdf-toolbar__btn-text">Signatur hinzufügen</span>
</button>
</div>
}
</div>