Skip to content

Commit 061bbcd

Browse files
mattjokebodnara
authored andcommitted
fix(admin): fixed text inputs
* Text inputs have maximum width of form field
1 parent 19c6a8a commit 061bbcd

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

apps/admin-gui/src/app/shared/components/dialogs/add-manager-dialog/add-manager-dialog.component.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ <h1 mat-dialog-title>{{'DIALOGS.ADD_MANAGERS.TITLE' | translate}}</h1>
1515
</mat-form-field>
1616

1717
<mat-form-field class="mr-2 w-100">
18-
<label>
19-
<input
20-
matInput
21-
autocomplete="false"
22-
placeholder="{{'DIALOGS.ADD_MANAGERS.DESCRIPTION' | translate}}"
23-
data-cy="search-manager-input"
24-
perunWebAppsAutoFocus
25-
(keyup.enter)="onSearchByString()"
26-
[formControl]="searchCtrl" />
27-
</label>
18+
<input
19+
matInput
20+
autocomplete="false"
21+
placeholder="{{'DIALOGS.ADD_MANAGERS.DESCRIPTION' | translate}}"
22+
data-cy="search-manager-input"
23+
perunWebAppsAutoFocus
24+
(keyup.enter)="onSearchByString()"
25+
[formControl]="searchCtrl" />
2826
<mat-error>
2927
{{'DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE' | translate}}
3028
</mat-error>

apps/admin-gui/src/app/shared/components/dialogs/add-member-dialog/add-member-dialog.component.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ <h1 mat-dialog-title>{{'DIALOGS.ADD_MEMBERS.TITLE' | translate}}</h1>
33

44
<div mat-dialog-content *ngIf="!processing">
55
<mat-form-field class="mr-2 search-field adjust-width">
6-
<label>
7-
<input
8-
matInput
9-
autocomplete="false"
10-
placeholder="{{'DIALOGS.ADD_MEMBERS.DESCRIPTION' | translate}}"
11-
data-cy="search-members"
12-
(keyup.enter)="onSearchByString()"
13-
[formControl]="searchCtrl" />
14-
</label>
6+
<input
7+
matInput
8+
autocomplete="false"
9+
placeholder="{{'DIALOGS.ADD_MEMBERS.DESCRIPTION' | translate}}"
10+
data-cy="search-members"
11+
(keyup.enter)="onSearchByString()"
12+
[formControl]="searchCtrl" />
1513
<mat-error>
1614
{{'DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE' | translate}}
1715
</mat-error>

apps/admin-gui/src/app/shared/components/dialogs/connect-identity-dialog/connect-identity-dialog.component.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
<h1 mat-dialog-title>{{'DIALOGS.CONNECT_IDENTITY.TITLE_'+target | translate}}</h1>
33
<div mat-dialog-content class="dialog-container">
44
<mat-form-field class="mr-2 search-field no-border-mat-input">
5-
<label>
6-
<input
7-
matInput
8-
autocomplete="false"
9-
placeholder="{{'DIALOGS.CONNECT_IDENTITY.SEARCH' | translate}}"
10-
[formControl]="searchCtrl" />
11-
</label>
5+
<input
6+
matInput
7+
autocomplete="false"
8+
placeholder="{{'DIALOGS.CONNECT_IDENTITY.SEARCH' | translate}}"
9+
[formControl]="searchCtrl" />
1210
<mat-error>
1311
{{'DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE' | translate}}
1412
</mat-error>

0 commit comments

Comments
 (0)