Skip to content

Commit c20e5e5

Browse files
authored
feat(admin): improve authentication-methods tab styles
1 parent 3fc0b4f commit c20e5e5

File tree

2 files changed

+20
-35
lines changed

2 files changed

+20
-35
lines changed

admin/app/components/users/user-detail-personal-information/authentication-method.gjs

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -216,34 +216,30 @@ export default class AuthenticationMethod extends Component {
216216
<h2 class="page-section__title">Méthodes de connexion</h2>
217217
</header>
218218

219-
<ul>
220-
<li class="authentication-method__connexions-information">
221-
Date de dernière connexion :
219+
<ul class="authentication-method__connexions-information">
220+
<li>
221+
<strong>Date de dernière connexion :</strong>
222222
{{#if @user.lastLoggedAt}}{{dayjsFormat @user.lastLoggedAt "DD/MM/YYYY"}}{{/if}}
223223
</li>
224224
{{#if @user.emailConfirmedAt}}
225-
<li class="authentication-method__connexions-information">
226-
Adresse e-mail confirmée le :
225+
<li>
226+
<strong>Adresse e-mail confirmée le :</strong>
227227
{{dayjsFormat @user.emailConfirmedAt "DD/MM/YYYY"}}
228228
</li>
229229
{{else}}
230-
<li class="authentication-method__connexions-information">
231-
Adresse e-mail non confirmée
230+
<li>
231+
<strong>Adresse e-mail non confirmée</strong>
232232
</li>
233233
{{/if}}
234-
</ul>
235-
236-
{{#if this.hasPixAuthenticationMethod}}
237-
<br />
238-
<ul>
239-
<li class="authentication-method__connexions-information">
240-
{{t "components.users.user-detail-personal-information.authentication-method.should-change-password-status"}}
234+
{{#if this.hasPixAuthenticationMethod}}
235+
<li>
236+
<strong>{{t
237+
"components.users.user-detail-personal-information.authentication-method.should-change-password-status"
238+
}}</strong>
241239
{{#if this.shouldChangePassword}}{{t "common.words.yes"}}{{else}}{{t "common.words.no"}}{{/if}}
242240
</li>
243-
</ul>
244-
{{/if}}
245-
246-
<br />
241+
{{/if}}
242+
</ul>
247243

248244
<table class="authentication-method-table">
249245

admin/app/styles/components/users/authentication-method.scss

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
.authentication-method {
2-
32
&__connexions-information {
43
display: flex;
5-
6-
dt {
7-
font-weight: normal;
8-
}
9-
10-
dd {
11-
margin-left: 6px;
12-
}
4+
flex-direction: column;
5+
margin-bottom: var(--pix-spacing-6x);
6+
margin-left: var(--pix-spacing-6x);
137
}
148
}
159

@@ -21,37 +15,32 @@
2115
}
2216

2317
&__name-column {
24-
min-width: 200px;
18+
padding-left: var(--pix-spacing-6x);
2519
}
2620

2721
&__actions-column {
28-
2922
> div {
3023
display: flex;
3124

3225
button:not(:first-child) {
33-
margin-left: 10px;
26+
margin-left: var(--pix-spacing-3x);
3427
}
3528
}
3629
}
3730

3831
&__check {
39-
margin: 0 20px;
4032
color: var(--pix-success-700);
4133
}
4234

4335
&__uncheck {
44-
margin: 0 20px;
4536
color: var(--pix-neutral-100);
4637
}
4738
}
4839

4940
.reassign-authentication-method-modal {
50-
5141
&__form-body {
52-
5342
p {
54-
margin-bottom: 40px;
43+
margin-bottom: var(--pix-spacing-10x);
5544
padding: 0;
5645
}
5746
}

0 commit comments

Comments
 (0)