remove unnecessary width class (#10781)

This commit is contained in:
rr-bw 2024-08-28 16:14:05 -07:00 committed by GitHub
parent 37523ca66b
commit 33f66263fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 70 additions and 73 deletions

View File

@ -1,79 +1,76 @@
<form [bitSubmit]="submitForm" [formGroup]="formGroup" autocomplete="off"> <form [bitSubmit]="submitForm" [formGroup]="formGroup" autocomplete="off">
<div class="tw-min-w-96"> <app-two-factor-auth-email
<app-two-factor-auth-email (token)="token = $event"
(token)="token = $event" *ngIf="selectedProviderType === providerType.Email"
*ngIf="selectedProviderType === providerType.Email" />
/> <app-two-factor-auth-authenticator
<app-two-factor-auth-authenticator (token)="token = $event"
(token)="token = $event" *ngIf="selectedProviderType === providerType.Authenticator"
*ngIf="selectedProviderType === providerType.Authenticator" />
/> <app-two-factor-auth-yubikey
<app-two-factor-auth-yubikey (token)="token = $event"
(token)="token = $event" *ngIf="selectedProviderType === providerType.Yubikey"
*ngIf="selectedProviderType === providerType.Yubikey" />
/> <app-two-factor-auth-webauthn
<app-two-factor-auth-webauthn (token)="token = $event; submitForm()"
(token)="token = $event; submitForm()" *ngIf="selectedProviderType === providerType.WebAuthn"
*ngIf="selectedProviderType === providerType.WebAuthn" />
/> <app-two-factor-auth-duo
<app-two-factor-auth-duo (token)="token = $event; submitForm()"
(token)="token = $event; submitForm()" [providerData]="providerData"
[providerData]="providerData" *ngIf="
selectedProviderType === providerType.OrganizationDuo ||
selectedProviderType === providerType.Duo
"
#duoComponent
/>
<bit-form-control *ngIf="selectedProviderType != null">
<bit-label>{{ "rememberMe" | i18n }}</bit-label>
<input type="checkbox" bitCheckbox formControlName="remember" />
</bit-form-control>
<ng-container *ngIf="selectedProviderType == null">
<p bitTypography="body1">{{ "noTwoStepProviders" | i18n }}</p>
<p bitTypography="body1">{{ "noTwoStepProviders2" | i18n }}</p>
</ng-container>
<div [hidden]="!showCaptcha()">
<iframe id="hcaptcha_iframe" height="80" sandbox="allow-scripts allow-same-origin"></iframe>
</div>
<!-- Buttons -->
<div class="tw-flex tw-flex-col tw-space-y-2.5 tw-mb-3">
<button
type="submit"
buttonType="primary"
bitButton
bitFormButton
*ngIf=" *ngIf="
selectedProviderType === providerType.OrganizationDuo || selectedProviderType != null &&
selectedProviderType === providerType.Duo selectedProviderType !== providerType.WebAuthn &&
selectedProviderType !== providerType.Duo &&
selectedProviderType !== providerType.OrganizationDuo
" "
#duoComponent >
/> <span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ actionButtonText }} </span>
<bit-form-control *ngIf="selectedProviderType != null"> </button>
<bit-label>{{ "rememberMe" | i18n }}</bit-label> <button
<input type="checkbox" bitCheckbox formControlName="remember" /> type="button"
</bit-form-control> buttonType="primary"
<ng-container *ngIf="selectedProviderType == null"> bitButton
<p bitTypography="body1">{{ "noTwoStepProviders" | i18n }}</p> (click)="launchDuo()"
<p bitTypography="body1">{{ "noTwoStepProviders2" | i18n }}</p> *ngIf="
</ng-container> selectedProviderType === providerType.Duo ||
<hr /> selectedProviderType === providerType.OrganizationDuo
<div [hidden]="!showCaptcha()"> "
<iframe id="hcaptcha_iframe" height="80" sandbox="allow-scripts allow-same-origin"></iframe> >
</div> <span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ "launchDuo" | i18n }}</span>
<!-- <!-- Buttons --> </button>
<div class="tw-flex tw-flex-col tw-space-y-2.5 tw-mb-3">
<button
type="submit"
buttonType="primary"
bitButton
bitFormButton
*ngIf="
selectedProviderType != null &&
selectedProviderType !== providerType.WebAuthn &&
selectedProviderType !== providerType.Duo &&
selectedProviderType !== providerType.OrganizationDuo
"
>
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ actionButtonText }} </span>
</button>
<button
type="button"
buttonType="primary"
bitButton
(click)="launchDuo()"
*ngIf="
selectedProviderType === providerType.Duo ||
selectedProviderType === providerType.OrganizationDuo
"
>
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ "launchDuo" | i18n }}</span>
</button>
<a routerLink="/login" bitButton buttonType="secondary"> <a routerLink="/login" bitButton buttonType="secondary">
{{ "cancel" | i18n }} {{ "cancel" | i18n }}
</a> </a>
</div> </div>
<div class="text-center"> <div class="text-center">
<a bitLink href="#" appStopClick (click)="selectOtherTwofactorMethod()">{{ <a bitLink href="#" appStopClick (click)="selectOtherTwofactorMethod()">{{
"useAnotherTwoStepMethod" | i18n "useAnotherTwoStepMethod" | i18n
}}</a> }}</a>
</div>
</div> </div>
</form> </form>