style(patents): align filter row with News's design and card grid
This commit is contained in:
@@ -269,14 +269,16 @@
|
||||
searchLabel="Suche nach Titel oder Patent-Nr." />
|
||||
|
||||
<ng-template #filtersTmp>
|
||||
<div class="filter-row">
|
||||
<mat-chip-listbox
|
||||
[value]="selectedSources"
|
||||
multiple
|
||||
(change)="handleSourceChipChange($event)">
|
||||
<mat-chip-option value="EPO">EPO</mat-chip-option>
|
||||
<mat-chip-option value="USPTO">USPTO</mat-chip-option>
|
||||
</mat-chip-listbox>
|
||||
<div class="additional-filters">
|
||||
<app-filter-card>
|
||||
<mat-chip-listbox
|
||||
[value]="selectedSources"
|
||||
multiple
|
||||
(change)="handleSourceChipChange($event)">
|
||||
<mat-chip-option value="EPO">EPO</mat-chip-option>
|
||||
<mat-chip-option value="USPTO">USPTO</mat-chip-option>
|
||||
</mat-chip-listbox>
|
||||
</app-filter-card>
|
||||
|
||||
<app-year-range-slider
|
||||
class="patent-year-filter"
|
||||
|
||||
@@ -20,22 +20,27 @@ h1 {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
.additional-filters {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
align-items: stretch;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
gap: 1.5rem;
|
||||
padding: 0 1rem 1rem;
|
||||
}
|
||||
|
||||
.patent-year-filter {
|
||||
display: flex;
|
||||
width: min(400px, 100%);
|
||||
}
|
||||
|
||||
::ng-deep app-year-range-slider .year-filter {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.mat-mdc-standard-chip {
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
|
||||
.patent-year-filter {
|
||||
width: min(285px, 100%);
|
||||
}
|
||||
|
||||
.state-message {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -22,6 +22,7 @@ import {
|
||||
CardSearchComponent,
|
||||
Page,
|
||||
} from '../../shared/ui/card-search/card-search.component';
|
||||
import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component';
|
||||
|
||||
type PatentSource = 'EPO' | 'USPTO';
|
||||
|
||||
@@ -54,6 +55,7 @@ const MIN_YEAR = 1978;
|
||||
LoadingComponent,
|
||||
YearRangeSliderComponent,
|
||||
CardSearchComponent,
|
||||
FilterCardComponent,
|
||||
],
|
||||
templateUrl: './patents.component.html',
|
||||
styleUrl: './patents.component.scss',
|
||||
|
||||
Reference in New Issue
Block a user