Skip to content

Commit

Permalink
fix: filter position
Browse files Browse the repository at this point in the history
  • Loading branch information
domiSchenk committed Oct 18, 2021
1 parent 6e66ed0 commit 4d70c55
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/app/routes/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<a (click)="handleGroupAndFilter('tags')" cds-text="link">Tags</a>
</p>
</div>
<div>
<cds-input control-width="shrink">
<div class="grid-item-end">
<cds-search control-width="shrink">
<label></label>
<input placeholder="placeholder text" [(ngModel)]="searchText" />
</cds-input>
<input type="search" [(ngModel)]="searchText" />
</cds-search>

</div>
</div>
Expand Down
8 changes: 0 additions & 8 deletions src/app/shared/components/subnav/subnav.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,3 @@
margin: 7px;
display: block;
}

// cds-icon-button.hover:hover {
// background: black;
// }

.branch-control {
width: 300px;
}
5 changes: 3 additions & 2 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { CdsAccordionModule, CdsAlertModule, CdsButtonModule, CdsCheckboxModule, CdsDividerModule, CdsFileModule, CdsFormsModule, CdsIconModule, CdsInputModule, CdsModalModule, CdsProgressCircleModule, CdsRadioModule, CdsSelectModule, CdsTagModule, CdsTextareaModule } from '@cds/angular';
import { CdsAccordionModule, CdsAlertModule, CdsButtonModule, CdsCheckboxModule, CdsDividerModule, CdsFileModule, CdsFormsModule, CdsIconModule, CdsInputModule, CdsModalModule, CdsProgressCircleModule, CdsRadioModule, CdsSearchModule, CdsSelectModule, CdsTagModule, CdsTextareaModule } from '@cds/angular';
import { FilterModule } from '@josee9988/filter-pipe-ngx';
import { NgSelectModule } from '@ng-select/ng-select';
import { TranslateModule } from '@ngx-translate/core';
Expand Down Expand Up @@ -76,7 +76,8 @@ const clarity = [
CdsAccordionModule,
CdsProgressCircleModule,
CdsIconModule,
CdsRadioModule
CdsRadioModule,
CdsSearchModule
];

const modules = [
Expand Down
4 changes: 4 additions & 0 deletions src/theme/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
text-overflow: ellipsis;
white-space: nowrap;
}

.grid-item-end {
justify-self: end;
}

0 comments on commit 4d70c55

Please sign in to comment.