Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(feature-info): use igo-feature-details and set custom style #45

Merged
merged 4 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ <h4 color="primary">{{ title }}</h4>
</button>
</div>

<app-feature-details *ngIf="resultSelected$.value && !customFeatureDetails"
<!--app-feature-details *ngIf="resultSelected$.value && !customFeatureDetails"
[mobile]="mobile"
[feature]="resultSelected$.value.data"
[mapQueryClick]="mapQueryClick">
</app-feature-details>
</app-feature-details-->
alecarn marked this conversation as resolved.
Show resolved Hide resolved

<app-feature-details-custom *ngIf="resultSelected$.value && customFeatureDetails"
[mobile]="mobile"
[feature]="resultSelected$.value.data"
(mapQuery)="mapQueryFromFeatureDetails($event)"
[mapQueryClick]="mapQueryClick">
</app-feature-details-custom>

<igo-feature-details *ngIf="resultSelected$.value && !customFeatureDetails"
[map]="map"
[feature]="resultSelected$.value.data">
</igo-feature-details>
alecarn marked this conversation as resolved.
Show resolved Hide resolved
</ng-container>
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,44 @@ h4 {
margin-top: 8px!important;
}

app-feature-details {
/*app-feature-details {
float: left;
width: 100%;
overflow-x: clip;
margin-right: 8px;
}
}*/


igo-feature-details {
::ng-deep table {
margin: 2em auto;
alecarn marked this conversation as resolved.
Show resolved Hide resolved
border-spacing: 0px;
border-collapse: collapse;
tbody {
tr:nth-child(odd) {
background-color: #fff !important;
}
tr {
border-bottom: 1px solid #DAE6F0;
td {
font: normal 16px/24px 'Open Sans', sans-serif;
alecarn marked this conversation as resolved.
Show resolved Hide resolved
color: #223654;
margin-top: 4px;
margin-bottom: 4px;
text-align: left;
width: 62% !important;
padding: 0.5em !important;
}
td:first-child {
font-weight: bold;
margin-bottom: 8px;
width: 38% !important;
}
}
tr:hover {
cursor: pointer;
background-color: #DAE6F0 !important;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { IgoLanguageModule } from '@igo2/core';
import { IgoSearchResultsModule } from '@igo2/geo';
import { IgoFeatureModule } from '../feature.module';
import { FeatureInfoComponent } from './feature-info.component';
import { IgoFeatureModule as IgoFeatureModules } from '@igo2/geo';
alecarn marked this conversation as resolved.
Show resolved Hide resolved

@NgModule({
imports: [
Expand All @@ -18,7 +19,8 @@ import { FeatureInfoComponent } from './feature-info.component';
IgoLanguageModule,
IgoStopPropagationModule,
IgoFeatureModule,
IgoSearchResultsModule
IgoSearchResultsModule,
IgoFeatureModules
],
exports: [FeatureInfoComponent],
declarations: [FeatureInfoComponent]
Expand Down
Loading