Skip to content

Commit

Permalink
ui:(core, geo): fix input form width, change overly pane to fit-conte…
Browse files Browse the repository at this point in the history
…nt (#1395)

* ui:(core, geo): fix input form width, change overly pane to fit-content

* change cdk-overlay-pane from core to filter theming

* add providers mat_autocomplite and mat_select config to set overly fit-content

* set the style locally
  • Loading branch information
aziz-access authored Sep 21, 2023
1 parent fbc4ff7 commit 7056094
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@

.logical {
flex-flow: column nowrap;
width: 10%;
max-width: 84px;
margin-left: 5px;
width: 100%;
max-width: 60px;
margin-right: 5px;
}

.logicalHidden {
flex-flow: column nowrap;
width: 10%;
width: 0px;
visibility: hidden;
max-width: 45px;
margin-left: 5px;
max-width: 0px;
}

::ng-deep .logical .mat-mdc-select-arrow {
Expand All @@ -50,17 +48,17 @@
}

.field {
width: 20%;
width: 150px;
margin-right: 5px;
}

::ng-deep .field .mat-mdc-select-arrow {
visibility: hidden;
}

.operator {
width: 12%;
min-width: 150px;
margin-left: 10px;
width: 150px;
margin-right: 5px;
text-align: center;
}

Expand All @@ -69,34 +67,34 @@
}

.spatialSelector {
width: 15%;
margin-left: 5px;
width: 110px;
margin-right: 5px;
}

::ng-deep .spatialSelector .mat-mdc-select-arrow {
visibility: hidden;
}

.singleInput {
width: 30%;
margin-left: 5px;
width: 150px;
margin-right: 5px;
@include mobile {
width: 27%;
}
}

.snrc {
width: 20%;
margin-left: 5px;
width: 110px;
margin-right: 5px;
}

::ng-deep .singleInput .mat-mdc-select-arrow {
visibility: hidden;
}

.dualInput {
width: 20%;
margin-left: 5px;
width: 150px;
margin-right: 5px;
}

::ng-deep .dualInput .mat-mdc-select-arrow {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
.year-input-only-year {
width: 120px;
margin-right: 25px;
text-align: left !important;
}

// to disable selection month and day for year picker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import { Component, Input } from '@angular/core';
import { OgcFilterableDataSource } from '../shared/ogc-filter.interface';
import { IgoMap } from '../../map/shared';
import { MAT_SELECT_CONFIG } from '@angular/material/select';
import { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS } from '@angular/material/autocomplete';

@Component({
selector: 'igo-ogc-filterable-form',
templateUrl: './ogc-filterable-form.component.html'
templateUrl: './ogc-filterable-form.component.html',
styles: ['::ng-deep.igo-overlay-panel-width { min-width: fit-content;}'],
providers: [
{
provide: MAT_SELECT_CONFIG,
useValue: { overlayPanelClass: 'igo-overlay-panel-width' }
},
{
provide: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,
useValue: { overlayPanelClass: 'igo-overlay-panel-width' }
}
]
})
export class OgcFilterableFormComponent {
@Input() datasource: OgcFilterableDataSource;
Expand Down

0 comments on commit 7056094

Please sign in to comment.