Skip to content

Commit f2e8173

Browse files
committed
fix(angular): Minor UI tweaks
1 parent 4f7915c commit f2e8173

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

examples/angular/src/app/screens/phone-auth-screen-w-oauth/phone-auth-screen-w-oauth.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@
1616

1717
import { Component } from "@angular/core";
1818
import { CommonModule } from "@angular/common";
19-
import { PhoneAuthScreenComponent, GoogleSignInButtonComponent } from "@invertase/firebaseui-angular";
19+
import { PhoneAuthScreenComponent, GoogleSignInButtonComponent, ContentComponent } from "@invertase/firebaseui-angular";
2020

2121
@Component({
2222
selector: "app-phone-auth-screen-w-oauth",
2323
standalone: true,
24-
imports: [CommonModule, PhoneAuthScreenComponent, GoogleSignInButtonComponent],
24+
imports: [CommonModule, PhoneAuthScreenComponent, GoogleSignInButtonComponent, ContentComponent],
2525
template: `
2626
<fui-phone-auth-screen>
27-
<fui-google-sign-in-button></fui-google-sign-in-button>
27+
<fui-content>
28+
<fui-google-sign-in-button></fui-google-sign-in-button>
29+
</fui-content>
2830
</fui-phone-auth-screen>
2931
`,
3032
styles: [],

packages/angular/src/lib/auth/forms/mfa/sms-multi-factor-enrollment-form.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,18 @@ import {
6565
[tanstackField]="phoneForm"
6666
[label]="displayNameLabel()"
6767
type="text"
68-
></fui-form-input>
68+
/>
6969
</fieldset>
7070
<fieldset>
71-
<fui-country-selector [(value)]="country"></fui-country-selector>
7271
<fui-form-input
7372
name="phoneNumber"
7473
tanstack-app-field
7574
[tanstackField]="phoneForm"
7675
[label]="phoneNumberLabel()"
7776
type="tel"
78-
></fui-form-input>
77+
>
78+
<fui-country-selector [(value)]="country" ngProjectAs="input-before" />
79+
</fui-form-input>
7980
</fieldset>
8081
<fieldset>
8182
<div class="fui-recaptcha-container" #recaptchaContainer></div>

packages/angular/src/lib/auth/forms/phone-auth-form.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ import {
5656
template: `
5757
<form (submit)="handleSubmit($event)" class="fui-form">
5858
<fieldset>
59-
<fui-country-selector [(value)]="country"></fui-country-selector>
6059
<fui-form-input
6160
name="phoneNumber"
6261
tanstack-app-field
6362
[tanstackField]="form"
6463
[label]="phoneNumberLabel()"
6564
type="tel"
66-
></fui-form-input>
65+
>
66+
<fui-country-selector [(value)]="country" ngProjectAs="input-before" />
67+
</fui-form-input>
6768
</fieldset>
6869
<fieldset>
6970
<div class="fui-recaptcha-container" #recaptchaContainer></div>

0 commit comments

Comments
 (0)