Skip to content

Commit 4cc5dab

Browse files
committed
fix: adjust button size on user-configs page
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
1 parent 912f1e0 commit 4cc5dab

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

timeless-api/src/main/webui/src/app/pages/user-config/user-config.component.html

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,19 @@
6565
inputStyleClass="w-full"
6666
></p-inputmask>
6767
</div>
68+
69+
<div class="flex flex-col md:col-span-2">
70+
<button
71+
pButton
72+
severity="contrast"
73+
icon="pi pi-save"
74+
size="small"
75+
type="submit"
76+
label="Salvar"
77+
></button>
78+
</div>
6879
</div>
6980
</div>
70-
71-
<ng-template #footer>
72-
<p-button
73-
severity="contrast"
74-
icon="pi pi-save"
75-
size="small"
76-
iconPos="left"
77-
class="w-full"
78-
type="submit"
79-
label="Salvar"
80-
/>
81-
</ng-template>
8281
</p-card>
8382
</form>
8483

timeless-api/src/main/webui/src/app/pages/user-config/user-config.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, inject, signal } from '@angular/core';
22
import { Card } from 'primeng/card';
33
import { InputText } from 'primeng/inputtext';
4-
import { Button } from 'primeng/button';
4+
import { ButtonDirective, ButtonModule } from 'primeng/button';
55
import { InputMask } from 'primeng/inputmask';
66
import {
77
FormBuilder,
@@ -18,11 +18,12 @@ import { Toast } from 'primeng/toast';
1818
imports: [
1919
Card,
2020
InputText,
21-
Button,
2221
InputMask,
2322
FormsModule,
2423
ReactiveFormsModule,
24+
ButtonModule,
2525
Toast,
26+
ButtonDirective,
2627
],
2728
templateUrl: './user-config.component.html',
2829
styleUrl: './user-config.component.scss',

0 commit comments

Comments
 (0)