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:
@@ -104,21 +104,21 @@
|
|||||||
@L("Password", "Passwort")
|
@L("Password", "Passwort")
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<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">
|
<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"/>
|
<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>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<input id="login-password"
|
<input id="login-password"
|
||||||
type="@(ShowPassword ? "text" : "password")"
|
type="@(ShowPassword ? "text" : "password")"
|
||||||
class="form-control border-start-0 border-end-0 @GetPasswordInputClass()"
|
class="form-control @GetPasswordInputClass()"
|
||||||
@bind="Password"
|
@bind="Password"
|
||||||
@bind:event="oninput"
|
@bind:event="oninput"
|
||||||
disabled="@IsLoading"
|
disabled="@IsLoading"
|
||||||
autocomplete="current-password" />
|
autocomplete="current-password" />
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="btn btn-outline-secondary border-start-0"
|
class="btn btn-outline-secondary"
|
||||||
style="border-left: none;"
|
style="margin-left: 0;"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@onclick="() => ShowPassword = !ShowPassword">
|
@onclick="() => ShowPassword = !ShowPassword">
|
||||||
@if (ShowPassword) {
|
@if (ShowPassword) {
|
||||||
|
|||||||
Reference in New Issue
Block a user