Skip to content

Commit

Permalink
Fix search content fit (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic authored Aug 27, 2024
1 parent 03587be commit 35f2fca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

.searchInput {
flex: 1 1 auto;
display: contents;
color: var(--toolbar-text-color);
}

Expand Down Expand Up @@ -63,3 +63,7 @@
filter: brightness(0.5);
margin-inline-end: 5px;
}

.searchConfigField {
width: 50px!important;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<div class='windowContainer'>
<mat-toolbar class='searchBarTop'>
<span class="searchInput">
<mat-form-field class="search-form-field" floatLabel="never">
<mat-form-field *ngIf="searchStringFromConfig" class="searchConfigField" floatLabel="never">
<input matInput class="searchConfig"
[ngModel]="searchStringFromConfig" disabled="true"
matTooltip="Remove from widget preferences">
</mat-form-field>
<mat-form-field floatLabel="never">
<mat-label>
Search <mat-icon>search</mat-icon>
</mat-label>
<input *ngIf="searchStringFromConfig" matInput class="searchConfig"
[ngModel]="searchStringFromConfig" disabled="true"
matTooltip="Remove from widget preferences">
<input #searchSnippets matInput type="text" [(ngModel)]="searchString">
</mat-form-field>
</span>
Expand Down

0 comments on commit 35f2fca

Please sign in to comment.