Simplify password input field styling

Refactored the styling of the password input field and its
associated elements:
- Removed `border-end-0` class from the `<span>` element.
- Updated `<input>` to rely on `@GetPasswordInputClass()`
  and removed `border-start-0 border-end-0` classes.
- Adjusted `<button>` styling by removing `border-start-0`
  and using `margin-left: 0;` instead of `border-left: none`.

These changes improve maintainability and ensure consistent
UI styling.
This commit is contained in:
2026-11-12 13:44:28 +01:00
parent 35b6093169
commit c77beb88df

View File

@@ -104,21 +104,21 @@
@L("Password", "Passwort")
</label>
<div class="input-group">
<span class="input-group-text bg-light border-end-0">
<span class="input-group-text bg-light">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#6c757d" viewBox="0 0 16 16">
<path d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"/>
</svg>
</span>
<input id="login-password"
type="@(ShowPassword ? "text" : "password")"
class="form-control border-start-0 border-end-0 @GetPasswordInputClass()"
class="form-control @GetPasswordInputClass()"
@bind="Password"
@bind:event="oninput"
disabled="@IsLoading"
autocomplete="current-password" />
<button type="button"
class="btn btn-outline-secondary border-start-0"
style="border-left: none;"
class="btn btn-outline-secondary"
style="margin-left: 0;"
tabindex="-1"
@onclick="() => ShowPassword = !ShowPassword">
@if (ShowPassword) {