Skip to content

Commit f340c1a

Browse files
committed
widen search input to min. 45 chars + grow if vertical space is available (closes #18)
1 parent b5a3ea8 commit f340c1a

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

src/app/search/search.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
<input clrInput type="text" id="filename" formControlName="searchFilename" size="25">
4848
<clr-control-helper>Use * as a wildcard, e.g. *.java, MyFile.*</clr-control-helper>
4949
</clr-input-container>
50-
<clr-datalist-container>
50+
<clr-datalist-container class="search-text-container">
5151
<label for="searchText">Search text</label>
52-
<input clrDatalistInput type="text" id="searchText" formControlName="searchText" #searchTextInput size="35" autocomplete="off">
52+
<input clrDatalistInput type="text" id="searchText" formControlName="searchText" #searchTextInput size="45" autocomplete="off">
5353
<datalist>
5454
<option *ngFor="let item of historyStoreService.history$ | async" [value]="item"></option>
5555
</datalist>

src/app/search/search.component.scss

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@
44

55
> * {
66
margin-top: 0;
7-
margin-bottom: 15px;
8-
9-
7+
margin-bottom: 10px;
108
}
119

1210
> *:not(:last-child) {
13-
margin-right: 20px;
11+
margin-right: 15px;
12+
}
13+
14+
.search-text-container::ng-deep {
15+
flex-grow: 1;
16+
margin-right: 5px;
17+
18+
.clr-input-group, input {
19+
width: 100%;
20+
}
21+
22+
input::-webkit-calendar-picker-indicator {
23+
display: none;
24+
}
1425
}
1526
}
1627

0 commit comments

Comments
 (0)